@@ -4,15 +4,15 @@ In this example you have two (HTML) pages `pageA` and `pageB`. You want to creat
44
55You can see how to define multiple entry points via the ` entry ` option.
66
7- You can use
7+ You can use
88
99You can see the output files:
1010
1111* ` commons.js ` contains:
12- * the module system
13- * chunk loading logic
1412 * module ` common.js ` which is used in both pages
1513* ` pageA.js ` contains: (` pageB.js ` is similar)
14+ * the module system
15+ * chunk loading logic
1616 * the entry point ` pageA.js `
1717 * it would contain any other module that is only used by ` pageA `
1818* ` 0.chunk.js ` is an additional chunk which is used by both pages. It contains:
@@ -572,7 +572,7 @@ module.exports = function(msg) {
572572
573573```
574574Hash: 0a1b2c3d4e5f6a7b8c9d
575- Version: webpack 4.0.0-beta.2
575+ Version: webpack 4.0.0-beta.1
576576 Asset Size Chunks Chunk Names
577577 0.js 363 bytes 0 [emitted]
578578commons.js 267 bytes 1 [emitted] commons
@@ -588,8 +588,8 @@ chunk {0} 0.js 91 bytes <{1}> <{2}> <{3}> [rendered]
588588 cjs require ./shared [2] ./pageB.js 3:14-33
589589 amd require ./shared [3] ./pageA.js 2:0-4:2
590590chunk {1} commons.js (commons) 26 bytes ={2}= ={3}= >{0}< [initial] [rendered] split chunk (cache group: commons) (name: commons)
591- > ./pageA pageA
592591 > ./pageB pageB
592+ > ./pageA pageA
593593 [1] ./common.js 26 bytes {1} [built]
594594 cjs require ./common [0] ./shared.js 1:13-32
595595 cjs require ./common [2] ./pageB.js 1:13-32
@@ -608,7 +608,7 @@ chunk {3} pageA.js (pageA) 108 bytes ={1}= >{0}< [entry] [rendered]
608608
609609```
610610Hash: 0a1b2c3d4e5f6a7b8c9d
611- Version: webpack 4.0.0-beta.2
611+ Version: webpack 4.0.0-beta.1
612612 Asset Size Chunks Chunk Names
613613 0.js 120 bytes 0 [emitted]
614614commons.js 95 bytes 1 [emitted] commons
@@ -624,8 +624,8 @@ chunk {0} 0.js 91 bytes <{1}> <{2}> <{3}> [rendered]
624624 cjs require ./shared [2] ./pageB.js 3:14-33
625625 amd require ./shared [3] ./pageA.js 2:0-4:2
626626chunk {1} commons.js (commons) 26 bytes ={2}= ={3}= >{0}< [initial] [rendered] split chunk (cache group: commons) (name: commons)
627- > ./pageA pageA
628627 > ./pageB pageB
628+ > ./pageA pageA
629629 [1] ./common.js 26 bytes {1} [built]
630630 cjs require ./common [0] ./shared.js 1:13-32
631631 cjs require ./common [2] ./pageB.js 1:13-32
0 commit comments