Skip to content

Commit 5973233

Browse files
committed
regenerated example
1 parent 0e36e7e commit 5973233

File tree

31 files changed

+897
-1040
lines changed

31 files changed

+897
-1040
lines changed

examples/agressive-merging/README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ module.exports = {
5656
## Uncompressed
5757

5858
```
59-
Hash: f0835194a2e3ae886763
60-
Version: webpack 1.1.0
61-
Time: 79ms
59+
Hash: d79e3f1df7b5b1fce70b
60+
Version: webpack 1.5.0
61+
Time: 76ms
6262
Asset Size Chunks Chunk Names
63-
0.chunk.js 5737 0 [emitted]
64-
pageB.bundle.js 4189 1 [emitted] pageB
65-
pageA.bundle.js 4202 2 [emitted] pageA
66-
3.chunk.js 341 3 [emitted]
67-
pageC.bundle.js 4023 4 [emitted] pageC
68-
chunk {0} 0.chunk.js 5553 {1} {2} [rendered]
69-
> [0] ./pageB.js 1:0-3:2
70-
> aggressive-merge [0] ./pageA.js 1:0-3:2
63+
0.chunk.js 5738 0 [emitted]
64+
pageB.bundle.js 4208 1 [emitted] pageB
65+
pageA.bundle.js 4177 2 [emitted] pageA
66+
3.chunk.js 342 3 [emitted]
67+
pageC.bundle.js 4020 4 [emitted] pageC
68+
chunk {0} 0.chunk.js 5553 {2} {1} [rendered]
69+
> [0] ./pageA.js 1:0-3:2
70+
> aggressive-merge [0] ./pageB.js 1:0-3:2
7171
[3] ./common.js 5553 {0} [built]
7272
amd require ./common [0] ./pageA.js 1:0-3:2
7373
amd require ./common [0] ./pageB.js 1:0-3:2
@@ -99,15 +99,15 @@ chunk {4} pageC.bundle.js (pageC) 70 [rendered]
9999
## Minimized (uglify-js, no zip)
100100

101101
```
102-
Hash: b5d04f82f70b4b11760f
103-
Version: webpack 1.1.0
104-
Time: 270ms
102+
Hash: ab85fb8904309de75c02
103+
Version: webpack 1.5.0
104+
Time: 277ms
105105
Asset Size Chunks Chunk Names
106-
0.chunk.js 73 0 [emitted]
107-
pageB.bundle.js 801 1 [emitted] pageB
108-
pageA.bundle.js 800 2 [emitted] pageA
109-
3.chunk.js 75 3 [emitted]
110-
pageC.bundle.js 785 4 [emitted] pageC
106+
0.chunk.js 73 0 [emitted]
107+
pageB.bundle.js 812 1 [emitted] pageB
108+
pageA.bundle.js 811 2 [emitted] pageA
109+
3.chunk.js 75 3 [emitted]
110+
pageC.bundle.js 796 4 [emitted] pageC
111111
chunk {0} 0.chunk.js 5553 {1} {2} [rendered]
112112
> [0] ./pageB.js 1:0-3:2
113113
> aggressive-merge [0] ./pageA.js 1:0-3:2

examples/code-splitted-css-bundle/README.md

Lines changed: 64 additions & 222 deletions
Original file line numberDiff line numberDiff line change
@@ -48,178 +48,6 @@ module.exports = {
4848
};
4949
```
5050

51-
# js/output.js
52-
53-
``` javascript
54-
/******/ (function(modules) { // webpackBootstrap
55-
/******/ // install a JSONP callback for chunk loading
56-
/******/ var parentJsonpFunction = window["webpackJsonp"];
57-
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
58-
/******/ // add "moreModules" to the modules object,
59-
/******/ // then flag all "chunkIds" as loaded and fire callback
60-
/******/ var moduleId, chunkId, i = 0, callbacks = [];
61-
/******/ for(;i < chunkIds.length; i++) {
62-
/******/ chunkId = chunkIds[i];
63-
/******/ if(installedChunks[chunkId])
64-
/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
65-
/******/ installedChunks[chunkId] = 0;
66-
/******/ }
67-
/******/ for(moduleId in moreModules) {
68-
/******/ modules[moduleId] = moreModules[moduleId];
69-
/******/ }
70-
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
71-
/******/ while(callbacks.length)
72-
/******/ callbacks.shift().call(null, __webpack_require__);
73-
/******/
74-
/******/ };
75-
/******/
76-
/******/ // The module cache
77-
/******/ var installedModules = {};
78-
/******/
79-
/******/ // object to store loaded and loading chunks
80-
/******/ // "0" means "already loaded"
81-
/******/ // Array means "loading", array contains callbacks
82-
/******/ var installedChunks = {
83-
/******/ 1:0
84-
/******/ };
85-
/******/
86-
/******/ // The require function
87-
/******/ function __webpack_require__(moduleId) {
88-
/******/
89-
/******/ // Check if module is in cache
90-
/******/ if(installedModules[moduleId])
91-
/******/ return installedModules[moduleId].exports;
92-
/******/
93-
/******/ // Create a new module (and put it into the cache)
94-
/******/ var module = installedModules[moduleId] = {
95-
/******/ exports: {},
96-
/******/ id: moduleId,
97-
/******/ loaded: false
98-
/******/ };
99-
/******/
100-
/******/ // Execute the module function
101-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
102-
/******/
103-
/******/ // Flag the module as loaded
104-
/******/ module.loaded = true;
105-
/******/
106-
/******/ // Return the exports of the module
107-
/******/ return module.exports;
108-
/******/ }
109-
/******/
110-
/******/ // This file contains only the entry chunk.
111-
/******/ // The chunk loading function for additional chunks
112-
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
113-
/******/ // "0" is the signal for "already loaded"
114-
/******/ if(installedChunks[chunkId] === 0)
115-
/******/ return callback.call(null, __webpack_require__);
116-
/******/
117-
/******/ // an array means "currently loading".
118-
/******/ if(installedChunks[chunkId] !== undefined) {
119-
/******/ installedChunks[chunkId].push(callback);
120-
/******/ } else {
121-
/******/ // start chunk loading
122-
/******/ installedChunks[chunkId] = [callback];
123-
/******/ var head = document.getElementsByTagName('head')[0];
124-
/******/ var script = document.createElement('script');
125-
/******/ script.type = 'text/javascript';
126-
/******/ script.charset = 'utf-8';
127-
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
128-
/******/ head.appendChild(script);
129-
/******/ }
130-
/******/ };
131-
/******/
132-
/******/ // expose the modules object (__webpack_modules__)
133-
/******/ __webpack_require__.m = modules;
134-
/******/
135-
/******/ // expose the module cache
136-
/******/ __webpack_require__.c = installedModules;
137-
/******/
138-
/******/ // __webpack_public_path__
139-
/******/ __webpack_require__.p = "js/";
140-
/******/
141-
/******/ // Load entry module and return exports
142-
/******/ return __webpack_require__(0);
143-
/******/ })
144-
/************************************************************************/
145-
/******/ ([
146-
/* 0 */
147-
/*!********************!*\
148-
!*** ./example.js ***!
149-
\********************/
150-
/***/ function(module, exports, __webpack_require__) {
151-
152-
__webpack_require__(/*! ./style.css */ 1);
153-
__webpack_require__.e/* require */(0, function(__webpack_require__) {[__webpack_require__(/*! ./chunk */ 3)];});
154-
155-
156-
/***/ },
157-
/* 1 */
158-
/*!*******************!*\
159-
!*** ./style.css ***!
160-
\*******************/
161-
/***/ function(module, exports, __webpack_require__) {
162-
163-
// removed by extract-text-webpack-plugin
164-
165-
/***/ }
166-
/******/ ])
167-
```
168-
169-
# js/0.output.js
170-
171-
``` javascript
172-
webpackJsonp([0],[
173-
/* 0 */,
174-
/* 1 */,
175-
/* 2 */
176-
/*!********************!*\
177-
!*** ./style2.css ***!
178-
\********************/
179-
/***/ function(module, exports, __webpack_require__) {
180-
181-
// style-loader: Adds some css to the DOM by adding a <style> tag
182-
var dispose = __webpack_require__(/*! (webpack)/~/style-loader/addStyle.js */ 6)
183-
// The css code:
184-
(__webpack_require__(/*! !(webpack)/~/css-loader!./style2.css */ 4))
185-
if(false) {
186-
module.hot.accept();
187-
module.hot.dispose(dispose);
188-
}
189-
190-
/***/ },
191-
/* 3 */
192-
/*!******************!*\
193-
!*** ./chunk.js ***!
194-
\******************/
195-
/***/ function(module, exports, __webpack_require__) {
196-
197-
__webpack_require__(/*! ./style2.css */ 2);
198-
199-
200-
/***/ },
201-
/* 4 */
202-
/*!*******************************************!*\
203-
!*** (webpack)/~/css-loader!./style2.css ***!
204-
\*******************************************/
205-
/***/ function(module, exports, __webpack_require__) {
206-
207-
module.exports =
208-
".xyz {\r\n\tbackground: url("+__webpack_require__(/*! ./image2.png */ 5)+");\r\n}\r\n";
209-
210-
/***/ },
211-
/* 5 */
212-
/*!********************!*\
213-
!*** ./image2.png ***!
214-
\********************/
215-
/***/ function(module, exports, __webpack_require__) {
216-
217-
module.exports = __webpack_require__.p + "ce21cbdd9b894e6af794813eb3fdaf60.png"
218-
219-
/***/ }
220-
]);
221-
```
222-
22351
# js/style.css
22452

22553
``` javascript
@@ -233,76 +61,90 @@ body {
23361
## Uncompressed
23462

23563
```
236-
Hash: 16bad7466ac50f139f21
237-
Version: webpack 1.3.2-beta8
238-
Time: 128ms
239-
Asset Size Chunks Chunk Names
240-
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
241-
style.css 71 [emitted]
242-
0.output.js 1252 0 [emitted]
243-
output.js 4080 1 [emitted] main
244-
chunk {0} 0.output.js 650 {1} [rendered]
64+
Hash: eef5d1aa6f7b7111aa13
65+
Version: webpack 1.5.0
66+
Time: 196ms
67+
Asset Size Chunks Chunk Names
68+
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
69+
0.output.js 2163 0 [emitted]
70+
output.js 10626 1 [emitted] main
71+
style.css 71 1 [emitted] main
72+
chunk {0} 0.output.js 1482 {1} [rendered]
24573
> [0] ./example.js 2:0-20
246-
[2] ./style2.css 456 {0} [built]
247-
cjs require ./style2.css [3] ./chunk.js 1:0-23
248-
[3] ./chunk.js 26 {0} [built]
74+
[2] (webpack)/~/css-loader!./style2.css 205 {0} [built]
75+
cjs require !!(webpack)/~\css-loader\index.js!.\style2.css [4] ./style2.css 4:14-177
76+
[4] ./style2.css 1170 {0} [built]
77+
cjs require ./style2.css [5] ./chunk.js 1:0-23
78+
[5] ./chunk.js 26 {0} [built]
24979
amd require ./chunk [0] ./example.js 2:0-20
250-
[4] (webpack)/~/css-loader!./style2.css 87 {0} [built]
251-
cjs require !!(webpack)\node_modules\css-loader\index.js!.\style2.css [2] ./style2.css 4:2-188
252-
[5] ./image2.png 81 {0} [built]
253-
cjs require ./image2.png [4] (webpack)/~/css-loader!./style2.css 2:32-55
254-
chunk {1} output.js (main) 89 [rendered]
80+
[6] ./image2.png 81 {0} [built]
81+
cjs require ./image2.png [2] (webpack)/~/css-loader!./style2.css 2:56-79
82+
chunk {1} output.js, style.css (main) 5948 [rendered]
25583
> main [0] ./example.js
25684
[0] ./example.js 48 {1} [built]
257-
[1] ./style.css 41 {1} [built]
85+
[1] (webpack)/~/css-loader/cssToString.js 352 {1} [built]
86+
cjs require (webpack)/~\css-loader\cssToString.js [2] (webpack)/~/css-loader!./style2.css 1:27-101
87+
cjs require (webpack)/~\css-loader\cssToString.js [8] (webpack)/~/css-loader!./style.css 1:27-101
88+
[3] ./style.css 41 {1} [built]
25889
cjs require ./style.css [0] ./example.js 1:0-22
90+
[7] (webpack)/~/style-loader/addStyles.js 5507 {1} [built]
91+
cjs require !(webpack)\node_modules\style-loader\addStyles.js [4] ./style2.css 7:13-111
25992
Child extract-text-webpack-plugin:
260-
Asset Size Chunks Chunk Names
261-
ce21cbdd9b894e6af794813eb3fdaf60.png 119
262-
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)\node_modules\css-loader\index.js!.\style.css 167 [rendered]
93+
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 637 [rendered]
26394
> [0] (webpack)/~/css-loader!./style.css
264-
[0] (webpack)/~/css-loader!./style.css 86 {0} [built]
265-
[1] ./image.png 81 {0} [built]
266-
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:32-54
95+
[0] (webpack)/~/css-loader!./style.css 204 {0} [built]
96+
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
97+
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
98+
[2] ./image.png 81 {0} [built]
99+
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:56-78
267100
```
268101

269102
## Minimized (uglify-js, no zip)
270103

271104
```
272-
Hash: a1cb30e2febe8a9ad8eb
273-
Version: webpack 1.3.2-beta8
274-
Time: 209ms
105+
Hash: 7fc8a453077654aaa032
106+
Version: webpack 1.5.0
107+
Time: 377ms
275108
Asset Size Chunks Chunk Names
276109
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
277-
style.css 61 [emitted]
278-
0.output.js 202 0 [emitted]
279-
output.js 749 1 [emitted] main
280-
chunk {0} 0.output.js 633 {1} [rendered]
110+
0.output.js 279 0 [emitted]
111+
output.js 3299 1 [emitted] main
112+
style.css 61 1 [emitted] main
113+
chunk {0} 0.output.js 1465 {1} [rendered]
281114
> [0] ./example.js 2:0-20
282-
[2] ./style2.css 456 {0} [built]
283-
cjs require ./style2.css [3] ./chunk.js 1:0-23
284-
[3] ./chunk.js 26 {0} [built]
115+
[2] (webpack)/~/css-loader!./style2.css 188 {0} [built]
116+
cjs require !!(webpack)/~\css-loader\index.js!.\style2.css [4] ./style2.css 4:14-177
117+
[4] ./style2.css 1170 {0} [built]
118+
cjs require ./style2.css [5] ./chunk.js 1:0-23
119+
[5] ./chunk.js 26 {0} [built]
285120
amd require ./chunk [0] ./example.js 2:0-20
286-
[4] (webpack)/~/css-loader!./style2.css 70 {0} [built]
287-
cjs require !!(webpack)\node_modules\css-loader\index.js!.\style2.css [2] ./style2.css 4:2-188
288-
[5] ./image2.png 81 {0} [built]
289-
cjs require ./image2.png [4] (webpack)/~/css-loader!./style2.css 2:24-47
290-
chunk {1} output.js (main) 89 [rendered]
121+
[6] ./image2.png 81 {0} [built]
122+
cjs require ./image2.png [2] (webpack)/~/css-loader!./style2.css 2:48-71
123+
chunk {1} output.js, style.css (main) 5948 [rendered]
291124
> main [0] ./example.js
292125
[0] ./example.js 48 {1} [built]
293-
[1] ./style.css 41 {1} [built]
126+
[1] (webpack)/~/css-loader/cssToString.js 352 {1} [built]
127+
cjs require (webpack)/~\css-loader\cssToString.js [2] (webpack)/~/css-loader!./style2.css 1:27-101
128+
cjs require (webpack)/~\css-loader\cssToString.js [8] (webpack)/~/css-loader!./style.css 1:27-101
129+
[3] ./style.css 41 {1} [built]
294130
cjs require ./style.css [0] ./example.js 1:0-22
131+
[7] (webpack)/~/style-loader/addStyles.js 5507 {1} [built]
132+
cjs require !(webpack)\node_modules\style-loader\addStyles.js [4] ./style2.css 7:13-111
295133
296134
WARNING in 0.output.js from UglifyJs
297-
Condition always false [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:5,0]
298-
Dropping unreachable code [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:6,0]
299-
Side effects in initialization of unused variable dispose [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:2,0]
135+
Condition always false [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:9,0]
136+
Dropping unreachable code [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:11,0]
137+
Side effects in initialization of unused variable update [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:7,0]
138+
139+
WARNING in output.js from UglifyJs
140+
Condition always false [(webpack)/~/style-loader/addStyles.js:23,0]
141+
Dropping unreachable code [(webpack)/~/style-loader/addStyles.js:24,0]
300142
Child extract-text-webpack-plugin:
301-
Asset Size Chunks Chunk Names
302-
ce21cbdd9b894e6af794813eb3fdaf60.png 119
303-
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)\node_modules\css-loader\index.js!.\style.css 150 [rendered]
143+
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 620 [rendered]
304144
> [0] (webpack)/~/css-loader!./style.css
305-
[0] (webpack)/~/css-loader!./style.css 69 {0} [built]
306-
[1] ./image.png 81 {0} [built]
307-
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:24-46
308-
```
145+
[0] (webpack)/~/css-loader!./style.css 187 {0} [built]
146+
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
147+
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
148+
[2] ./image.png 81 {0} [built]
149+
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:48-70
150+
```

0 commit comments

Comments
 (0)