@@ -4,15 +4,15 @@ In this example you have two (HTML) pages `pageA` and `pageB`. You want to creat |
4 | 4 |
|
5 | 5 | You can see how to define multiple entry points via the `entry` option. |
6 | 6 |
|
7 | | -You can use |
| 7 | +You can use |
8 | 8 |
|
9 | 9 | You can see the output files: |
10 | 10 |
|
11 | 11 | * `commons.js` contains: |
12 | | - * the module system |
13 | | - * chunk loading logic |
14 | 12 | * module `common.js` which is used in both pages |
15 | 13 | * `pageA.js` contains: (`pageB.js` is similar) |
| 14 | + * the module system |
| 15 | + * chunk loading logic |
16 | 16 | * the entry point `pageA.js` |
17 | 17 | * it would contain any other module that is only used by `pageA` |
18 | 18 | * `0.chunk.js` is an additional chunk which is used by both pages. It contains: |
@@ -572,7 +572,7 @@ module.exports = function(msg) { |
572 | 572 |
|
573 | 573 | ``` |
574 | 574 | Hash: 0a1b2c3d4e5f6a7b8c9d |
575 | | -Version: webpack 4.0.0-beta.2 |
| 575 | +Version: webpack 4.0.0-beta.1 |
576 | 576 | Asset Size Chunks Chunk Names |
577 | 577 | 0.js 363 bytes 0 [emitted] |
578 | 578 | commons.js 267 bytes 1 [emitted] commons |
@@ -588,8 +588,8 @@ chunk {0} 0.js 91 bytes <{1}> <{2}> <{3}> [rendered] |
588 | 588 | cjs require ./shared [2] ./pageB.js 3:14-33 |
589 | 589 | amd require ./shared [3] ./pageA.js 2:0-4:2 |
590 | 590 | chunk {1} commons.js (commons) 26 bytes ={2}= ={3}= >{0}< [initial] [rendered] split chunk (cache group: commons) (name: commons) |
591 | | - > ./pageA pageA |
592 | 591 | > ./pageB pageB |
| 592 | + > ./pageA pageA |
593 | 593 | [1] ./common.js 26 bytes {1} [built] |
594 | 594 | cjs require ./common [0] ./shared.js 1:13-32 |
595 | 595 | cjs require ./common [2] ./pageB.js 1:13-32 |
@@ -608,7 +608,7 @@ chunk {3} pageA.js (pageA) 108 bytes ={1}= >{0}< [entry] [rendered] |
608 | 608 |
|
609 | 609 | ``` |
610 | 610 | Hash: 0a1b2c3d4e5f6a7b8c9d |
611 | | -Version: webpack 4.0.0-beta.2 |
| 611 | +Version: webpack 4.0.0-beta.1 |
612 | 612 | Asset Size Chunks Chunk Names |
613 | 613 | 0.js 120 bytes 0 [emitted] |
614 | 614 | commons.js 95 bytes 1 [emitted] commons |
@@ -624,8 +624,8 @@ chunk {0} 0.js 91 bytes <{1}> <{2}> <{3}> [rendered] |
624 | 624 | cjs require ./shared [2] ./pageB.js 3:14-33 |
625 | 625 | amd require ./shared [3] ./pageA.js 2:0-4:2 |
626 | 626 | chunk {1} commons.js (commons) 26 bytes ={2}= ={3}= >{0}< [initial] [rendered] split chunk (cache group: commons) (name: commons) |
627 | | - > ./pageA pageA |
628 | 627 | > ./pageB pageB |
| 628 | + > ./pageA pageA |
629 | 629 | [1] ./common.js 26 bytes {1} [built] |
630 | 630 | cjs require ./common [0] ./shared.js 1:13-32 |
631 | 631 | cjs require ./common [2] ./pageB.js 1:13-32 |
|