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({}) 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