WA-238 reducing initial load increasing vendors Webpack 4 optimization

This commit is contained in:
apanizo 2018-05-16 15:37:33 +02:00
parent 8542a25941
commit 140d393e54
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,8 @@ module.exports = {
bail: true,
optimization: {
splitChunks: {
chunks: "all",
/* https://stackoverflow.com/questions/48985780/webpack-4-create-vendor-chunk
cacheGroups: {
vendor: {
test: /node_modules/,
@ -86,6 +88,7 @@ module.exports = {
minSize: 1,
},
},
*/
},
},
entry: [