tweak webpack settings
This commit is contained in:
parent
5ef27969e1
commit
e355b7dc9a
|
@ -67,13 +67,14 @@ module.exports = {
|
||||||
new OptimizeCSSAssetsPlugin({})
|
new OptimizeCSSAssetsPlugin({})
|
||||||
],
|
],
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
chunks: 'all'
|
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 New Issue