From 3e32c02c2165f3709c5335bbf0fcb5ee6d69beb6 Mon Sep 17 00:00:00 2001 From: Vladimir Metnev Date: Tue, 7 Nov 2017 01:47:59 +0200 Subject: [PATCH] fix(webpack_config/client): different chunkFilename in prod/dev fix(webpack_config/client): different chunkFilename in prod/dev --- webpack_config/client/webpack.base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack_config/client/webpack.base.js b/webpack_config/client/webpack.base.js index 77e7713a..67c1f7a2 100644 --- a/webpack_config/client/webpack.base.js +++ b/webpack_config/client/webpack.base.js @@ -29,6 +29,7 @@ const definePluginArgs = { // use hash filename to support long-term caching in production // NOTE: [chunkhash] leads to high memory consumption const filename = isProduction ? '[name].[hash:6].js' : '[name].js' +const chunkFilename = isProduction ? '[name].[chunkhash:6].js' : '[name].js' const hints = isProduction ? 'warning' : false const devtool = isProduction ? 'cheap-source-map' : 'eval' @@ -42,7 +43,7 @@ const baseBuild = { filename, publicPath, path: CLIENT_DIST_PATH, - chunkFilename: '[name].[hash:6].js', + chunkFilename, crossOriginLoading: 'anonymous' }, performance: {