Skip to content

Commit 0b13cf1

Browse files
committed
update examples
1 parent 2ad530e commit 0b13cf1

File tree

43 files changed

+257
-255
lines changed

Some content is hidden

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

43 files changed

+257
-255
lines changed

examples/aggressive-merging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060

6161
```
6262
Hash: 0a1b2c3d4e5f6a7b8c9d
63-
Version: webpack 4.0.0-beta.1
63+
Version: webpack 4.0.0-beta.2
6464
Asset Size Chunks Chunk Names
6565
0.chunk.js 5.98 KiB 0 [emitted]
6666
1.chunk.js 405 bytes 1 [emitted]
@@ -108,7 +108,7 @@ chunk {4} pageA.bundle.js (pageA) 71 bytes >{0}< [entry] [rendered]
108108

109109
```
110110
Hash: 0a1b2c3d4e5f6a7b8c9d
111-
Version: webpack 4.0.0-beta.1
111+
Version: webpack 4.0.0-beta.2
112112
Asset Size Chunks Chunk Names
113113
0.chunk.js 173 bytes 0, 1 [emitted]
114114
1.chunk.js 118 bytes 1 [emitted]

examples/chunkhash/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,22 +287,22 @@ __webpack_require__.e(/*! import() */ 2).then(function() { var module = __webpac
287287

288288
```
289289
Hash: 0a1b2c3d4e5f6a7b8c9d
290-
Version: webpack 4.0.0-beta.1
290+
Version: webpack 4.0.0-beta.2
291291
Asset Size Chunks Chunk Names
292-
main.[chunkhash].js 765 bytes 0 [emitted] main
292+
main.[chunkhash].js 768 bytes 0 [emitted] main
293293
1.[chunkhash].js 270 bytes 1 [emitted]
294294
2.[chunkhash].js 264 bytes 2 [emitted]
295295
runtime~main.[chunkhash].js 7.49 KiB 3 [emitted] runtime~main
296296
Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js
297-
chunk {0} main.[chunkhash].js (main) 55 bytes ={3}= >{1}< >{2}< [initial] [rendered]
297+
chunk {0} main.[chunkhash].js (main) 58 bytes ={3}= >{1}< >{2}< [initial] [rendered]
298298
> ./example main
299-
[0] ./example.js 55 bytes {0} [built]
299+
[0] ./example.js 58 bytes {0} [built]
300300
single entry ./example main
301-
chunk {1} 1.[chunkhash].js 29 bytes <{3}> <{0}> [rendered]
301+
chunk {1} 1.[chunkhash].js 29 bytes <{0}> <{3}> [rendered]
302302
> ./async1 [0] ./example.js 2:0-18
303303
[1] ./async1.js 29 bytes {1} [built]
304304
import() ./async1 [0] ./example.js 2:0-18
305-
chunk {2} 2.[chunkhash].js 29 bytes <{3}> <{0}> [rendered]
305+
chunk {2} 2.[chunkhash].js 29 bytes <{0}> <{3}> [rendered]
306306
> ./async2 [0] ./example.js 3:0-18
307307
[2] ./async2.js 29 bytes {2} [built]
308308
import() ./async2 [0] ./example.js 3:0-18
@@ -314,7 +314,7 @@ chunk {3} runtime~main.[chunkhash].js (runtime~main) 0 bytes ={0}= >{1}< >{2}
314314

315315
```
316316
Hash: 0a1b2c3d4e5f6a7b8c9d
317-
Version: webpack 4.0.0-beta.1
317+
Version: webpack 4.0.0-beta.2
318318
Asset Size Chunks Chunk Names
319319
0.[chunkhash].js 77 bytes 0 [emitted]
320320
1.[chunkhash].js 78 bytes 1 [emitted]
@@ -331,8 +331,8 @@ chunk {1} 1.[chunkhash].js 29 bytes <{2}> <{3}> [rendered]
331331
import() ./async1 [0] ./example.js 2:0-18
332332
chunk {2} runtime~main.[chunkhash].js (runtime~main) 0 bytes ={3}= >{0}< >{1}< [entry] [rendered]
333333
> ./example main
334-
chunk {3} main.[chunkhash].js (main) 55 bytes ={2}= >{0}< >{1}< [initial] [rendered]
334+
chunk {3} main.[chunkhash].js (main) 58 bytes ={2}= >{0}< >{1}< [initial] [rendered]
335335
> ./example main
336-
[0] ./example.js 55 bytes {3} [built]
336+
[0] ./example.js 58 bytes {3} [built]
337337
single entry ./example main
338338
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ module.exports = function() {
311311

312312
```
313313
Hash: 0a1b2c3d4e5f6a7b8c9d
314-
Version: webpack 4.0.0-beta.1
314+
Version: webpack 4.0.0-beta.2
315315
Asset Size Chunks Chunk Names
316316
0.output.js 1.86 KiB 0 [emitted]
317317
output.js 7.19 KiB 1 [emitted] main
@@ -339,7 +339,7 @@ chunk {1} output.js (main) 261 bytes >{0}< [entry] [rendered]
339339

340340
```
341341
Hash: 0a1b2c3d4e5f6a7b8c9d
342-
Version: webpack 4.0.0-beta.1
342+
Version: webpack 4.0.0-beta.2
343343
Asset Size Chunks Chunk Names
344344
0.output.js 627 bytes 0 [emitted]
345345
output.js 1.75 KiB 1 [emitted] main

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ module.exports = function() {
311311

312312
```
313313
Hash: 0a1b2c3d4e5f6a7b8c9d
314-
Version: webpack 4.0.0-beta.1
314+
Version: webpack 4.0.0-beta.2
315315
Asset Size Chunks Chunk Names
316316
0.output.js 1.86 KiB 0 [emitted]
317317
output.js 7.13 KiB 1 [emitted] main
@@ -339,7 +339,7 @@ chunk {1} output.js (main) 276 bytes >{0}< [entry] [rendered]
339339

340340
```
341341
Hash: 0a1b2c3d4e5f6a7b8c9d
342-
Version: webpack 4.0.0-beta.1
342+
Version: webpack 4.0.0-beta.2
343343
Asset Size Chunks Chunk Names
344344
0.output.js 627 bytes 0 [emitted]
345345
output.js 1.73 KiB 1 [emitted] main

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ module.exports = "It works";
266266

267267
```
268268
Hash: 0a1b2c3d4e5f6a7b8c9d
269-
Version: webpack 4.0.0-beta.1
269+
Version: webpack 4.0.0-beta.2
270270
Asset Size Chunks Chunk Names
271271
0.output.js 257 bytes 0 [emitted]
272272
output.js 7.56 KiB 1 [emitted] main
@@ -287,7 +287,7 @@ chunk {1} output.js (main) 378 bytes >{0}< [entry] [rendered]
287287

288288
```
289289
Hash: 0a1b2c3d4e5f6a7b8c9d
290-
Version: webpack 4.0.0-beta.1
290+
Version: webpack 4.0.0-beta.2
291291
Asset Size Chunks Chunk Names
292292
0.output.js 98 bytes 0 [emitted]
293293
output.js 1.79 KiB 1 [emitted] main

examples/code-splitting-harmony/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
305305

306306
```
307307
Hash: 0a1b2c3d4e5f6a7b8c9d
308-
Version: webpack 4.0.0-beta.1
308+
Version: webpack 4.0.0-beta.2
309309
Asset Size Chunks Chunk Names
310310
0.output.js 275 bytes 0 [emitted]
311311
1.output.js 284 bytes 1 [emitted]
@@ -337,7 +337,7 @@ chunk {3} output.js (main) 427 bytes >{0}< >{1}< >{2}< [entry] [rendered]
337337

338338
```
339339
Hash: 0a1b2c3d4e5f6a7b8c9d
340-
Version: webpack 4.0.0-beta.1
340+
Version: webpack 4.0.0-beta.2
341341
Asset Size Chunks Chunk Names
342342
0.output.js 76 bytes 0 [emitted]
343343
1.output.js 77 bytes 1 [emitted]

examples/code-splitting-native-import-context-filter/README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -321,78 +321,78 @@ getTemplate("baz.noimport");
321321

322322
```
323323
Hash: 0a1b2c3d4e5f6a7b8c9d
324-
Version: webpack 4.0.0-beta.1
324+
Version: webpack 4.0.0-beta.2
325325
Asset Size Chunks Chunk Names
326-
0.output.js 433 bytes 0 [emitted]
327-
1.output.js 442 bytes 1 [emitted]
328-
2.output.js 436 bytes 2 [emitted]
329-
output.js 8.21 KiB 3 [emitted] main
326+
0.output.js 436 bytes 0 [emitted]
327+
1.output.js 445 bytes 1 [emitted]
328+
2.output.js 439 bytes 2 [emitted]
329+
output.js 8.22 KiB 3 [emitted] main
330330
Entrypoint main = output.js
331-
chunk {0} 0.output.js 38 bytes <{3}> [rendered]
331+
chunk {0} 0.output.js 41 bytes <{3}> [rendered]
332332
> ./foo [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
333333
> ./foo.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
334-
[0] ./templates/foo.js 38 bytes {0} [optional] [built]
334+
[0] ./templates/foo.js 41 bytes {0} [optional] [built]
335335
[exports: default]
336336
context element ./foo.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
337337
context element ./foo [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
338-
chunk {1} 1.output.js 38 bytes <{3}> [rendered]
338+
chunk {1} 1.output.js 41 bytes <{3}> [rendered]
339339
> ./baz [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
340340
> ./baz.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
341-
[1] ./templates/baz.js 38 bytes {1} [optional] [built]
341+
[1] ./templates/baz.js 41 bytes {1} [optional] [built]
342342
[exports: default]
343343
context element ./baz.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
344344
context element ./baz [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
345-
chunk {2} 2.output.js 38 bytes <{3}> [rendered]
345+
chunk {2} 2.output.js 41 bytes <{3}> [rendered]
346346
> ./bar [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
347347
> ./bar.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
348-
[2] ./templates/bar.js 38 bytes {2} [optional] [built]
348+
[2] ./templates/bar.js 41 bytes {2} [optional] [built]
349349
[exports: default]
350350
context element ./bar.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
351351
context element ./bar [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
352-
chunk {3} output.js (main) 597 bytes >{0}< >{1}< >{2}< [entry] [rendered]
352+
chunk {3} output.js (main) 618 bytes >{0}< >{1}< >{2}< [entry] [rendered]
353353
> .\example.js main
354354
[3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object 160 bytes {3} [optional] [built]
355355
import() context lazy ./templates [4] ./example.js 3:23-7:3
356-
[4] ./example.js 437 bytes {3} [built]
356+
[4] ./example.js 458 bytes {3} [built]
357357
single entry .\example.js main
358358
```
359359

360360
## Production mode
361361

362362
```
363363
Hash: 0a1b2c3d4e5f6a7b8c9d
364-
Version: webpack 4.0.0-beta.1
364+
Version: webpack 4.0.0-beta.2
365365
Asset Size Chunks Chunk Names
366366
0.output.js 113 bytes 0 [emitted]
367367
1.output.js 114 bytes 1 [emitted]
368368
2.output.js 115 bytes 2 [emitted]
369369
output.js 2.13 KiB 3 [emitted] main
370370
Entrypoint main = output.js
371-
chunk {0} 0.output.js 38 bytes <{3}> [rendered]
371+
chunk {0} 0.output.js 41 bytes <{3}> [rendered]
372372
> ./foo [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
373373
> ./foo.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
374-
[0] ./templates/foo.js 38 bytes {0} [optional] [built]
374+
[0] ./templates/foo.js 41 bytes {0} [optional] [built]
375375
[exports: default]
376376
context element ./foo.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
377377
context element ./foo [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
378-
chunk {1} 1.output.js 38 bytes <{3}> [rendered]
378+
chunk {1} 1.output.js 41 bytes <{3}> [rendered]
379379
> ./baz [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
380380
> ./baz.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
381-
[1] ./templates/baz.js 38 bytes {1} [optional] [built]
381+
[1] ./templates/baz.js 41 bytes {1} [optional] [built]
382382
[exports: default]
383383
context element ./baz.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
384384
context element ./baz [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
385-
chunk {2} 2.output.js 38 bytes <{3}> [rendered]
385+
chunk {2} 2.output.js 41 bytes <{3}> [rendered]
386386
> ./bar [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
387387
> ./bar.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
388-
[2] ./templates/bar.js 38 bytes {2} [optional] [built]
388+
[2] ./templates/bar.js 41 bytes {2} [optional] [built]
389389
[exports: default]
390390
context element ./bar.js [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
391391
context element ./bar [3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
392-
chunk {3} output.js (main) 597 bytes >{0}< >{1}< >{2}< [entry] [rendered]
392+
chunk {3} output.js (main) 618 bytes >{0}< >{1}< >{2}< [entry] [rendered]
393393
> .\example.js main
394394
[3] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object 160 bytes {3} [optional] [built]
395395
import() context lazy ./templates [4] ./example.js 3:23-7:3
396-
[4] ./example.js 437 bytes {3} [built]
396+
[4] ./example.js 458 bytes {3} [built]
397397
single entry .\example.js main
398398
```

examples/code-splitting-native-import-context/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ getTemplate("baz");
308308

309309
```
310310
Hash: 0a1b2c3d4e5f6a7b8c9d
311-
Version: webpack 4.0.0-beta.1
311+
Version: webpack 4.0.0-beta.2
312312
Asset Size Chunks Chunk Names
313313
0.output.js 436 bytes 0 [emitted]
314314
1.output.js 445 bytes 1 [emitted]
@@ -348,7 +348,7 @@ chunk {3} output.js (main) 456 bytes >{0}< >{1}< >{2}< [entry] [rendered]
348348

349349
```
350350
Hash: 0a1b2c3d4e5f6a7b8c9d
351-
Version: webpack 4.0.0-beta.1
351+
Version: webpack 4.0.0-beta.2
352352
Asset Size Chunks Chunk Names
353353
0.output.js 113 bytes 0 [emitted]
354354
1.output.js 114 bytes 1 [emitted]

examples/code-splitting-specify-chunk-name/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ __webpack_require__(3)("./ba" + createContextVar).then(function(bar) {
300300

301301
```
302302
Hash: 0a1b2c3d4e5f6a7b8c9d
303-
Version: webpack 4.0.0-beta.1
303+
Version: webpack 4.0.0-beta.2
304304
Asset Size Chunks Chunk Names
305305
0.output.js 445 bytes 0 [emitted] chunk-bar-baz2
306306
1.output.js 439 bytes 1 [emitted] chunk-bar-baz0
@@ -340,7 +340,7 @@ chunk {3} output.js (main) 580 bytes >{0}< >{1}< >{2}< [entry] [rendered]
340340

341341
```
342342
Hash: 0a1b2c3d4e5f6a7b8c9d
343-
Version: webpack 4.0.0-beta.1
343+
Version: webpack 4.0.0-beta.2
344344
Asset Size Chunks Chunk Names
345345
0.output.js 114 bytes 0 [emitted] chunk-bar-baz2
346346
1.output.js 115 bytes 1 [emitted] chunk-bar-baz0

examples/code-splitting/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Minimized
301301

302302
```
303303
Hash: 0a1b2c3d4e5f6a7b8c9d
304-
Version: webpack 4.0.0-beta.1
304+
Version: webpack 4.0.0-beta.2
305305
Asset Size Chunks Chunk Names
306306
0.output.js 490 bytes 0 [emitted]
307307
output.js 7.47 KiB 1 [emitted] main
@@ -320,7 +320,7 @@ chunk {1} output.js (main) 166 bytes >{0}< [entry] [rendered]
320320

321321
```
322322
Hash: 0a1b2c3d4e5f6a7b8c9d
323-
Version: webpack 4.0.0-beta.1
323+
Version: webpack 4.0.0-beta.2
324324
Asset Size Chunks Chunk Names
325325
0.output.js 95 bytes 0 [emitted]
326326
output.js 1.68 KiB 1 [emitted] main

0 commit comments

Comments
 (0)