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({})
|
new OptimizeCSSAssetsPlugin({})
|
||||||
]
|
],
|
||||||
|
splitChunks: {
|
||||||
|
chunks: 'async',
|
||||||
|
minSize: 5000,
|
||||||
|
maxAsyncRequests: Infinity,
|
||||||
|
maxInitialRequests: Infinity
|
||||||
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new LodashModuleReplacementPlugin({
|
new LodashModuleReplacementPlugin()
|
||||||
caching: true
|
|
||||||
})
|
|
||||||
].concat(isDev ? [
|
].concat(isDev ? [
|
||||||
new webpack.HotModuleReplacementPlugin({
|
new webpack.HotModuleReplacementPlugin({
|
||||||
requestTimeout: 120000
|
requestTimeout: 120000
|
||||||
|
|
Loading…
Reference in a new issue