Skip to content

Commit 45a6749

Browse files
committed
updated examples
1 parent 58f7b68 commit 45a6749

File tree

15 files changed

+1013
-986
lines changed

15 files changed

+1013
-986
lines changed

examples/code-splitted-require.context-amd/README.md

Lines changed: 86 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -17,89 +17,90 @@ getTemplate("b", function(b) {
1717
# js/output.js
1818

1919
``` javascript
20-
/******/(function(modules) { // webpackBootstrap
21-
/******/ // The module cache
22-
/******/ var installedModules = {};
23-
/******/
24-
/******/ // object to store loaded and loading chunks
25-
/******/ // "0" means "already loaded"
26-
/******/ // Array means "loading", array contains callbacks
27-
/******/ var installedChunks = {0:0};
28-
/******/
29-
/******/ // The require function
30-
/******/ function require(moduleId) {
31-
/******/ // Check if module is in cache
32-
/******/ if(installedModules[moduleId])
33-
/******/ return installedModules[moduleId].exports;
34-
/******/
35-
/******/ // Create a new module (and put it into the cache)
36-
/******/ var module = installedModules[moduleId] = {
37-
/******/ exports: {},
38-
/******/ id: moduleId,
39-
/******/ loaded: false
40-
/******/ };
41-
/******/
42-
/******/ // Execute the module function
43-
/******/ modules[moduleId].call(null, module, module.exports, require);
44-
/******/
45-
/******/ // Flag the module as loaded
46-
/******/ module.loaded = true;
47-
/******/
48-
/******/ // Return the exports of the module
49-
/******/ return module.exports;
50-
/******/ }
51-
/******/
52-
/******/ // The bundle contains no chunks. A empty chunk loading function.
53-
/******/ require.e = function requireEnsure(chunkId, callback) {
54-
/******/ // "0" is the signal for "already loaded"
55-
/******/ if(installedChunks[chunkId] === 0)
56-
/******/ return callback.call(null, require);
57-
/******/
58-
/******/ // an array means "currently loading".
59-
/******/ if(installedChunks[chunkId] !== undefined) {
60-
/******/ installedChunks[chunkId].push(callback);
61-
/******/ } else {
62-
/******/ // start chunk loading
63-
/******/ installedChunks[chunkId] = [callback];
64-
/******/ var head = document.getElementsByTagName('head')[0];
65-
/******/ var script = document.createElement('script');
66-
/******/ script.type = 'text/javascript';
67-
/******/ script.charset = 'utf-8';
68-
/******/ script.src = modules.c + "" + chunkId + ".output.js";
69-
/******/ head.appendChild(script);
70-
/******/ }
71-
/******/ };
72-
/******/
73-
/******/ // expose the modules object (__webpack_modules__)
74-
/******/ require.modules = modules;
75-
/******/
76-
/******/ // expose the module cache
77-
/******/ require.cache = installedModules;
78-
/******/
79-
/******/ // install a JSONP callback for chunk loading
80-
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
81-
/******/ // add "moreModules" to the modules object,
82-
/******/ // then flag all "chunkIds" as loaded and fire callback
83-
/******/ var moduleId, chunkId, callbacks = [];
84-
/******/ while(chunkIds.length) {
85-
/******/ chunkId = chunkIds.shift();
86-
/******/ if(installedChunks[chunkId])
87-
/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
88-
/******/ installedChunks[chunkId] = 0;
89-
/******/ }
90-
/******/ for(moduleId in moreModules)
91-
/******/ modules[moduleId] = moreModules[moduleId];
92-
/******/ while(callbacks.length)
93-
/******/ callbacks.shift().call(null, require);
94-
/******/ };
95-
/******/
96-
/******/ // Load entry module and return exports
97-
/******/ return require(0);
98-
/******/})
20+
/******/ (function(modules) { // webpackBootstrap
21+
/******/ // The module cache
22+
/******/ var installedModules = {};
23+
/******/
24+
/******/ // object to store loaded and loading chunks
25+
/******/ // "0" means "already loaded"
26+
/******/ // Array means "loading", array contains callbacks
27+
/******/ var installedChunks = {0:0};
28+
/******/
29+
/******/ // The require function
30+
/******/ function require(moduleId) {
31+
/******/ // Check if module is in cache
32+
/******/ if(installedModules[moduleId])
33+
/******/ return installedModules[moduleId].exports;
34+
/******/
35+
/******/ // Create a new module (and put it into the cache)
36+
/******/ var module = installedModules[moduleId] = {
37+
/******/ exports: {},
38+
/******/ id: moduleId,
39+
/******/ loaded: false
40+
/******/ };
41+
/******/
42+
/******/ // Execute the module function
43+
/******/ modules[moduleId].call(null, module, module.exports, require);
44+
/******/
45+
/******/ // Flag the module as loaded
46+
/******/ module.loaded = true;
47+
/******/
48+
/******/ // Return the exports of the module
49+
/******/ return module.exports;
50+
/******/ }
51+
/******/
52+
/******/ // This file contains only the entry chunk.
53+
/******/ // The chunk loading function for additional chunks
54+
/******/ require.e = function requireEnsure(chunkId, callback) {
55+
/******/ // "0" is the signal for "already loaded"
56+
/******/ if(installedChunks[chunkId] === 0)
57+
/******/ return callback.call(null, require);
58+
/******/
59+
/******/ // an array means "currently loading".
60+
/******/ if(installedChunks[chunkId] !== undefined) {
61+
/******/ installedChunks[chunkId].push(callback);
62+
/******/ } else {
63+
/******/ // start chunk loading
64+
/******/ installedChunks[chunkId] = [callback];
65+
/******/ var head = document.getElementsByTagName('head')[0];
66+
/******/ var script = document.createElement('script');
67+
/******/ script.type = 'text/javascript';
68+
/******/ script.charset = 'utf-8';
69+
/******/ script.src = modules.c + "" + chunkId + ".output.js";
70+
/******/ head.appendChild(script);
71+
/******/ }
72+
/******/ };
73+
/******/
74+
/******/ // expose the modules object (__webpack_modules__)
75+
/******/ require.modules = modules;
76+
/******/
77+
/******/ // expose the module cache
78+
/******/ require.cache = installedModules;
79+
/******/
80+
/******/ // install a JSONP callback for chunk loading
81+
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
82+
/******/ // add "moreModules" to the modules object,
83+
/******/ // then flag all "chunkIds" as loaded and fire callback
84+
/******/ var moduleId, chunkId, callbacks = [];
85+
/******/ while(chunkIds.length) {
86+
/******/ chunkId = chunkIds.shift();
87+
/******/ if(installedChunks[chunkId])
88+
/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
89+
/******/ installedChunks[chunkId] = 0;
90+
/******/ }
91+
/******/ for(moduleId in moreModules)
92+
/******/ modules[moduleId] = moreModules[moduleId];
93+
/******/ while(callbacks.length)
94+
/******/ callbacks.shift().call(null, require);
95+
/******/ };
96+
/******/
97+
/******/ // Load entry module and return exports
98+
/******/ return require(0);
99+
/******/ })
99100
/************************************************************************/
100-
({
101-
// __webpack_public_path__
102-
c: "",
101+
/******/ ({
102+
/******/ // __webpack_public_path__
103+
/******/ c: "",
103104

104105
/***/ 0:
105106
/*!********************!*\
@@ -120,7 +121,7 @@ c: "",
120121
});
121122

122123
/***/ }
123-
})
124+
/******/ })
124125
```
125126

126127
# js/1.output.js
@@ -207,7 +208,7 @@ Hash: 7a6425e8fe46dc01a0db9eee1a97caca
207208
Version: webpack 0.10.0-beta4
208209
Time: 54ms
209210
Asset Size Chunks Chunk Names
210-
output.js 3659 0 main
211+
output.js 3814 0 main
211212
1.output.js 1596 1
212213
chunk {0} output.js (main) 261
213214
[0] ./example.js 261 [built] {0}
@@ -230,7 +231,7 @@ chunk {1} 1.output.js 463 {0}
230231
```
231232
Hash: 7a6425e8fe46dc01a0db9eee1a97caca
232233
Version: webpack 0.10.0-beta4
233-
Time: 169ms
234+
Time: 171ms
234235
Asset Size Chunks Chunk Names
235236
output.js 831 0 main
236237
1.output.js 531 1

0 commit comments

Comments
 (0)