tweak webpack settings

This commit is contained in:
Nolan Lawson 2018-04-20 23:10:27 -07:00
parent 5ef27969e1
commit e355b7dc9a
1 changed files with 5 additions and 4 deletions

View File

@ -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