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,
|
||||
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: [
|
||||
|
|
Loading…
Reference in New Issue