Skip to content

Commit f010546

Browse files
committed
update examples
1 parent bc840ec commit f010546

File tree

45 files changed

+454
-602
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+454
-602
lines changed

examples/aggressive-merging/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ module.exports = {
5757

5858
```
5959
Hash: 75bcce350a8b5f748873
60-
Version: webpack 3.5.1
60+
Version: webpack 3.11.0
6161
Asset Size Chunks Chunk Names
6262
0.chunk.js 5.76 kB 0 [emitted]
63-
1.chunk.js 403 bytes 1 [emitted]
64-
pageB.bundle.js 6.42 kB 2 [emitted] pageB
65-
pageA.bundle.js 6.39 kB 3 [emitted] pageA
66-
pageC.bundle.js 6.18 kB 4 [emitted] pageC
63+
1.chunk.js 405 bytes 1 [emitted]
64+
pageB.bundle.js 6.43 kB 2 [emitted] pageB
65+
pageA.bundle.js 6.42 kB 3 [emitted] pageA
66+
pageC.bundle.js 6.19 kB 4 [emitted] pageC
6767
Entrypoint pageA = pageA.bundle.js
6868
Entrypoint pageB = pageB.bundle.js
6969
Entrypoint pageC = pageC.bundle.js
@@ -102,7 +102,7 @@ chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]
102102

103103
```
104104
Hash: 75bcce350a8b5f748873
105-
Version: webpack 3.5.1
105+
Version: webpack 3.11.0
106106
Asset Size Chunks Chunk Names
107107
0.chunk.js 75 bytes 0 [emitted]
108108
1.chunk.js 78 bytes 1 [emitted]

examples/chunkhash/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = {
6262

6363
<!-- inlined minimized file "manifest.[chunkhash].js" -->
6464
<script>
65-
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,d=0,s=[];d<t.length;d++)i=t[d],o[i]&&s.push(o[i][0]),o[i]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(r&&r(t,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=n(n.s=a[d]);return f};var t={},o={4:0};n.e=function(e){function r(){u.onerror=u.onload=null,clearTimeout(i);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,n.nc&&u.setAttribute("nonce",n.nc),u.src=n.p+""+{0:"3db3fdaf96bbdadce99a",1:"7c1138cf80dd374c367e",2:"543257d0ba12aefbc71b",3:"15bdf078724c793dc604"}[e]+".js";var i=setTimeout(r,12e4);return u.onerror=u.onload=r,a.appendChild(u),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="js/",n.oe=function(e){throw console.error(e),e}}([]);
65+
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,s=0,l=[];s<t.length;s++)i=t[s],o[i]&&l.push(o[i][0]),o[i]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(r&&r(t,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=n(n.s=a[s]);return f};var t={},o={4:0};n.e=function(e){function r(){u.onerror=u.onload=null,clearTimeout(i);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,n.nc&&u.setAttribute("nonce",n.nc),u.src=n.p+""+{0:"3db3fdaf96bbdadce99a",1:"7c1138cf80dd374c367e"}[e]+".js";var i=setTimeout(r,12e4);return u.onerror=u.onload=r,a.appendChild(u),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="js/",n.oe=function(e){throw console.error(e),e}}([]);
6666
</script>
6767

6868
<!-- optional when using the CommonChunkPlugin for vendor modules -->
@@ -98,7 +98,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
9898
/*!**********************!*\
9999
!*** multi ./vendor ***!
100100
\**********************/
101-
/*! no static exports found */
101+
/*! dynamic exports provided */
102102
/*! all exports used */
103103
/***/ (function(module, exports, __webpack_require__) {
104104

@@ -118,7 +118,7 @@ webpackJsonp([3],[
118118
/*!********************!*\
119119
!*** ./example.js ***!
120120
\********************/
121-
/*! exports provided: */
121+
/*! no exports provided */
122122
/*! all exports used */
123123
/***/ (function(module, __webpack_exports__, __webpack_require__) {
124124

@@ -140,14 +140,14 @@ __webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! .
140140
## Uncompressed
141141

142142
```
143-
Hash: 49023fec553882c3285c
144-
Version: webpack 3.5.1
143+
Hash: be6b9171c119036aca2b
144+
Version: webpack 3.11.0
145145
Asset Size Chunks Chunk Names
146-
3db3fdaf96bbdadce99a.js 238 bytes 0 [emitted]
147-
7c1138cf80dd374c367e.js 238 bytes 1 [emitted]
148-
common.[chunkhash].js 732 bytes 2 [emitted] common
149-
main.[chunkhash].js 656 bytes 3 [emitted] main
150-
manifest.[chunkhash].js 5.89 kB 4 [emitted] manifest
146+
3db3fdaf96bbdadce99a.js 239 bytes 0 [emitted]
147+
7c1138cf80dd374c367e.js 239 bytes 1 [emitted]
148+
common.[chunkhash].js 733 bytes 2 [emitted] common
149+
main.[chunkhash].js 657 bytes 3 [emitted] main
150+
manifest.[chunkhash].js 5.83 kB 4 [emitted] manifest
151151
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
152152
Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
153153
chunk {0} 3db3fdaf96bbdadce99a.js 29 bytes {3} [rendered]
@@ -175,14 +175,14 @@ chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
175175
## Minimized (uglify-js, no zip)
176176

177177
```
178-
Hash: 49023fec553882c3285c
179-
Version: webpack 3.5.1
178+
Hash: be6b9171c119036aca2b
179+
Version: webpack 3.11.0
180180
Asset Size Chunks Chunk Names
181181
3db3fdaf96bbdadce99a.js 38 bytes 0 [emitted]
182182
7c1138cf80dd374c367e.js 38 bytes 1 [emitted]
183183
common.[chunkhash].js 150 bytes 2 [emitted] common
184184
main.[chunkhash].js 165 bytes 3 [emitted] main
185-
manifest.[chunkhash].js 1.46 kB 4 [emitted] manifest
185+
manifest.[chunkhash].js 1.41 kB 4 [emitted] manifest
186186
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
187187
Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
188188
chunk {0} 3db3fdaf96bbdadce99a.js 29 bytes {3} [rendered]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ body {
6767

6868
```
6969
Hash: 5be34b0d3c624e61c616
70-
Version: webpack 3.5.1
70+
Version: webpack 3.11.0
7171
Asset Size Chunks Chunk Names
7272
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
73-
0.output.js 2.43 kB 0 [emitted]
73+
0.output.js 2.44 kB 0 [emitted]
7474
output.js 21.2 kB 1 [emitted] main
7575
style.css 71 bytes 1 [emitted] main
7676
Entrypoint main = output.js style.css
@@ -105,7 +105,7 @@ Child extract-text-webpack-plugin ../../node_modules/extract-text-webpack-plugin
105105

106106
```
107107
Hash: edbe0e91ba86d814d855
108-
Version: webpack 3.5.1
108+
Version: webpack 3.11.0
109109
Asset Size Chunks Chunk Names
110110
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
111111
0.output.js 343 bytes 0 [emitted]

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ getTemplate("b", function(b) {
9999
/******/ // start chunk loading
100100
/******/ var head = document.getElementsByTagName('head')[0];
101101
/******/ var script = document.createElement('script');
102-
/******/ script.type = 'text/javascript';
102+
/******/ script.type = "text/javascript";
103103
/******/ script.charset = 'utf-8';
104104
/******/ script.async = true;
105105
/******/ script.timeout = 120000;
@@ -176,14 +176,14 @@ getTemplate("b", function(b) {
176176
/*!********************!*\
177177
!*** ./example.js ***!
178178
\********************/
179-
/*! no static exports found */
179+
/*! dynamic exports provided */
180180
/*! all exports used */
181181
/***/ (function(module, exports, __webpack_require__) {
182182

183183
function getTemplate(templateName, callback) {
184-
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 1)("./"+templateName)]; (function(tmpl) {
184+
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 1)("./"+templateName)]; ((function(tmpl) {
185185
callback(tmpl());
186-
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
186+
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
187187
}
188188
getTemplate("a", function(a) {
189189
console.log(a);
@@ -205,7 +205,7 @@ webpackJsonp([0],[
205205
/*!*********************************************!*\
206206
!*** ../require.context/templates ^\.\/.*$ ***!
207207
\*********************************************/
208-
/*! no static exports found */
208+
/*! dynamic exports provided */
209209
/*! all exports used */
210210
/***/ (function(module, exports, __webpack_require__) {
211211

@@ -238,7 +238,7 @@ webpackContext.id = 1;
238238
/*!*****************************************!*\
239239
!*** ../require.context/templates/a.js ***!
240240
\*****************************************/
241-
/*! no static exports found */
241+
/*! dynamic exports provided */
242242
/*! all exports used */
243243
/***/ (function(module, exports) {
244244

@@ -251,7 +251,7 @@ module.exports = function() {
251251
/*!*****************************************!*\
252252
!*** ../require.context/templates/b.js ***!
253253
\*****************************************/
254-
/*! no static exports found */
254+
/*! dynamic exports provided */
255255
/*! all exports used */
256256
/***/ (function(module, exports) {
257257

@@ -264,7 +264,7 @@ module.exports = function() {
264264
/*!*****************************************!*\
265265
!*** ../require.context/templates/c.js ***!
266266
\*****************************************/
267-
/*! no static exports found */
267+
/*! dynamic exports provided */
268268
/*! all exports used */
269269
/***/ (function(module, exports) {
270270

@@ -282,9 +282,9 @@ module.exports = function() {
282282

283283
```
284284
Hash: 1c46bbe47e8b8a0ee8e2
285-
Version: webpack 3.5.1
285+
Version: webpack 3.11.0
286286
Asset Size Chunks Chunk Names
287-
0.output.js 1.85 kB 0 [emitted]
287+
0.output.js 1.86 kB 0 [emitted]
288288
output.js 6.37 kB 1 [emitted] main
289289
Entrypoint main = output.js
290290
chunk {0} 0.output.js 463 bytes {1} [rendered]
@@ -309,7 +309,7 @@ chunk {1} output.js (main) 261 bytes [entry] [rendered]
309309

310310
```
311311
Hash: 1c46bbe47e8b8a0ee8e2
312-
Version: webpack 3.5.1
312+
Version: webpack 3.11.0
313313
Asset Size Chunks Chunk Names
314314
0.output.js 544 bytes 0 [emitted]
315315
output.js 1.52 kB 1 [emitted] main

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ getTemplate("b", function(b) {
9999
/******/ // start chunk loading
100100
/******/ var head = document.getElementsByTagName('head')[0];
101101
/******/ var script = document.createElement('script');
102-
/******/ script.type = 'text/javascript';
102+
/******/ script.type = "text/javascript";
103103
/******/ script.charset = 'utf-8';
104104
/******/ script.async = true;
105105
/******/ script.timeout = 120000;
@@ -176,7 +176,7 @@ getTemplate("b", function(b) {
176176
/*!********************!*\
177177
!*** ./example.js ***!
178178
\********************/
179-
/*! no static exports found */
179+
/*! dynamic exports provided */
180180
/*! all exports used */
181181
/***/ (function(module, exports, __webpack_require__) {
182182

@@ -205,7 +205,7 @@ webpackJsonp([0],[
205205
/*!*********************************************!*\
206206
!*** ../require.context/templates ^\.\/.*$ ***!
207207
\*********************************************/
208-
/*! no static exports found */
208+
/*! dynamic exports provided */
209209
/*! all exports used */
210210
/***/ (function(module, exports, __webpack_require__) {
211211

@@ -238,7 +238,7 @@ webpackContext.id = 1;
238238
/*!*****************************************!*\
239239
!*** ../require.context/templates/a.js ***!
240240
\*****************************************/
241-
/*! no static exports found */
241+
/*! dynamic exports provided */
242242
/*! all exports used */
243243
/***/ (function(module, exports) {
244244

@@ -251,7 +251,7 @@ module.exports = function() {
251251
/*!*****************************************!*\
252252
!*** ../require.context/templates/b.js ***!
253253
\*****************************************/
254-
/*! no static exports found */
254+
/*! dynamic exports provided */
255255
/*! all exports used */
256256
/***/ (function(module, exports) {
257257

@@ -264,7 +264,7 @@ module.exports = function() {
264264
/*!*****************************************!*\
265265
!*** ../require.context/templates/c.js ***!
266266
\*****************************************/
267-
/*! no static exports found */
267+
/*! dynamic exports provided */
268268
/*! all exports used */
269269
/***/ (function(module, exports) {
270270

@@ -282,10 +282,10 @@ module.exports = function() {
282282

283283
```
284284
Hash: f67ab883501eec17d2fb
285-
Version: webpack 3.5.1
285+
Version: webpack 3.11.0
286286
Asset Size Chunks Chunk Names
287-
0.output.js 1.85 kB 0 [emitted]
288-
output.js 6.3 kB 1 [emitted] main
287+
0.output.js 1.86 kB 0 [emitted]
288+
output.js 6.31 kB 1 [emitted] main
289289
Entrypoint main = output.js
290290
chunk {0} 0.output.js 463 bytes {1} [rendered]
291291
> [0] ./example.js 2:1-4:3
@@ -309,7 +309,7 @@ chunk {1} output.js (main) 276 bytes [entry] [rendered]
309309

310310
```
311311
Hash: f67ab883501eec17d2fb
312-
Version: webpack 3.5.1
312+
Version: webpack 3.11.0
313313
Asset Size Chunks Chunk Names
314314
0.output.js 544 bytes 0 [emitted]
315315
output.js 1.49 kB 1 [emitted] main

examples/code-splitting-bundle-loader/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = "It works";
102102
/******/ // start chunk loading
103103
/******/ var head = document.getElementsByTagName('head')[0];
104104
/******/ var script = document.createElement('script');
105-
/******/ script.type = 'text/javascript';
105+
/******/ script.type = "text/javascript";
106106
/******/ script.charset = 'utf-8';
107107
/******/ script.async = true;
108108
/******/ script.timeout = 120000;
@@ -179,7 +179,7 @@ module.exports = "It works";
179179
/*!********************!*\
180180
!*** ./example.js ***!
181181
\********************/
182-
/*! no static exports found */
182+
/*! dynamic exports provided */
183183
/*! all exports used */
184184
/***/ (function(module, exports, __webpack_require__) {
185185

@@ -193,7 +193,7 @@ __webpack_require__(/*! bundle-loader!./file.js */ 1)(function(fileJsExports) {
193193
/*!******************************************************!*\
194194
!*** (webpack)/node_modules/bundle-loader!./file.js ***!
195195
\******************************************************/
196-
/*! no static exports found */
196+
/*! dynamic exports provided */
197197
/*! all exports used */
198198
/***/ (function(module, exports, __webpack_require__) {
199199

@@ -225,7 +225,7 @@ webpackJsonp([0],{
225225
/*!*****************!*\
226226
!*** ./file.js ***!
227227
\*****************/
228-
/*! no static exports found */
228+
/*! dynamic exports provided */
229229
/*! all exports used */
230230
/***/ (function(module, exports) {
231231

@@ -242,9 +242,9 @@ module.exports = "It works";
242242

243243
```
244244
Hash: 0f292e2adbe6929efd48
245-
Version: webpack 3.5.1
245+
Version: webpack 3.11.0
246246
Asset Size Chunks Chunk Names
247-
0.output.js 231 bytes 0 [emitted]
247+
0.output.js 232 bytes 0 [emitted]
248248
output.js 6.73 kB 1 [emitted] main
249249
Entrypoint main = output.js
250250
chunk {0} 0.output.js 28 bytes {1} [rendered]
@@ -262,7 +262,7 @@ chunk {1} output.js (main) 378 bytes [entry] [rendered]
262262

263263
```
264264
Hash: 0f292e2adbe6929efd48
265-
Version: webpack 3.5.1
265+
Version: webpack 3.11.0
266266
Asset Size Chunks Chunk Names
267267
0.output.js 58 bytes 0 [emitted]
268268
output.js 1.55 kB 1 [emitted] main

examples/code-splitting-harmony/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
110110
/******/ // start chunk loading
111111
/******/ var head = document.getElementsByTagName('head')[0];
112112
/******/ var script = document.createElement('script');
113-
/******/ script.type = 'text/javascript';
113+
/******/ script.type = "text/javascript";
114114
/******/ script.charset = 'utf-8';
115115
/******/ script.async = true;
116116
/******/ script.timeout = 120000;
@@ -189,7 +189,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
189189
/*!********************!*\
190190
!*** ./example.js ***!
191191
\********************/
192-
/*! exports provided: */
192+
/*! no exports provided */
193193
/*! all exports used */
194194
/***/ (function(module, __webpack_exports__, __webpack_require__) {
195195

@@ -217,7 +217,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
217217
/*!***************************!*\
218218
!*** ./node_modules/a.js ***!
219219
\***************************/
220-
/*! no static exports found */
220+
/*! dynamic exports provided */
221221
/***/ (function(module, exports) {
222222

223223
// module a
@@ -227,7 +227,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
227227
/*!**************************************!*\
228228
!*** ./node_modules/c lazy ^\.\/.*$ ***!
229229
\**************************************/
230-
/*! no static exports found */
230+
/*! dynamic exports provided */
231231
/*! all exports used */
232232
/***/ (function(module, exports, __webpack_require__) {
233233

@@ -274,11 +274,11 @@ module.exports = webpackAsyncContext;
274274

275275
```
276276
Hash: f2701c90a6d1597932b5
277-
Version: webpack 3.5.1
277+
Version: webpack 3.11.0
278278
Asset Size Chunks Chunk Names
279-
0.output.js 258 bytes 0 [emitted]
280-
1.output.js 249 bytes 1 [emitted]
281-
2.output.js 244 bytes 2 [emitted]
279+
0.output.js 259 bytes 0 [emitted]
280+
1.output.js 250 bytes 1 [emitted]
281+
2.output.js 245 bytes 2 [emitted]
282282
output.js 7.55 kB 3 [emitted] main
283283
Entrypoint main = output.js
284284
chunk {0} 0.output.js 13 bytes {3} [rendered]
@@ -301,7 +301,7 @@ chunk {3} output.js (main) 427 bytes [entry] [rendered]
301301

302302
```
303303
Hash: f2701c90a6d1597932b5
304-
Version: webpack 3.5.1
304+
Version: webpack 3.11.0
305305
Asset Size Chunks Chunk Names
306306
0.output.js 37 bytes 0 [emitted]
307307
1.output.js 36 bytes 1 [emitted]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy