From bf36667002111ec9218f590106c15561e52fb6eb Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 20 Apr 2018 23:35:07 -0700 Subject: [PATCH] use chunks:all in webpack splitChunks (#193) * use chunks:all in webpack splitChunks * tweak webpack settings --- webpack.client.config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/webpack.client.config.js b/webpack.client.config.js index 5cfe79f7..4fba29a4 100644 --- a/webpack.client.config.js +++ b/webpack.client.config.js @@ -65,12 +65,16 @@ module.exports = { } }), new OptimizeCSSAssetsPlugin({}) - ] + ], + splitChunks: { + chunks: 'async', + minSize: 5000, + maxAsyncRequests: Infinity, + maxInitialRequests: Infinity + } }, plugins: [ - new LodashModuleReplacementPlugin({ - caching: true - }) + new LodashModuleReplacementPlugin() ].concat(isDev ? [ new webpack.HotModuleReplacementPlugin({ requestTimeout: 120000