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