-
Install dependencies
yarn install -
Execute Webpack:
yarn webpack
diff -u -r dist1 dist2/This will result in a difference in entry2.js:
diff -u -r dist1/entry2.js dist2/entry2.js
--- dist1/entry2.js 2018-11-28 12:24:40.000000000 -0500
+++ dist2/entry2.js 2018-11-28 12:24:40.000000000 -0500
@@ -1 +1 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[,function(n,o){console.log("entry2")}],[[1,0]]]);
\ No newline at end of file
+(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{2:function(n,o){console.log("entry2")}},[[2,0]]]);
\ No newline at end of fileThe critical parts of repeating are:
optimization.runtimeChunkmust be set tosinglemodemust beproduction- A new entry must be placed between two other entries