use chunks:all in webpack splitChunks (#193)
* use chunks:all in webpack splitChunks * tweak webpack settings
This commit is contained in:
parent
1f6e7066ed
commit
bf36667002
|
@ -65,12 +65,16 @@ module.exports = {
|
|||
}
|
||||
}),
|
||||
new OptimizeCSSAssetsPlugin({})
|
||||
]
|
||||
],
|
||||
splitChunks: {
|
||||
chunks: 'async',
|
||||
minSize: 5000,
|
||||
maxAsyncRequests: Infinity,
|
||||
maxInitialRequests: Infinity
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new LodashModuleReplacementPlugin({
|
||||
caching: true
|
||||
})
|
||||
new LodashModuleReplacementPlugin()
|
||||
].concat(isDev ? [
|
||||
new webpack.HotModuleReplacementPlugin({
|
||||
requestTimeout: 120000
|
||||
|
|
Loading…
Reference in a new issue