WA-238 reducing initial load increasing vendors Webpack 4 optimization
This commit is contained in:
parent
8542a25941
commit
140d393e54
|
@ -77,6 +77,8 @@ module.exports = {
|
||||||
bail: true,
|
bail: true,
|
||||||
optimization: {
|
optimization: {
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
|
chunks: "all",
|
||||||
|
/* https://stackoverflow.com/questions/48985780/webpack-4-create-vendor-chunk
|
||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
vendor: {
|
vendor: {
|
||||||
test: /node_modules/,
|
test: /node_modules/,
|
||||||
|
@ -86,6 +88,7 @@ module.exports = {
|
||||||
minSize: 1,
|
minSize: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
entry: [
|
entry: [
|
||||||
|
|
Loading…
Reference in New Issue