From 19321a38867ab2313824e698ef38c8541e00287b Mon Sep 17 00:00:00 2001 From: Ivan Akulov Date: Thu, 18 Jan 2018 18:16:11 +0300 Subject: [PATCH] Enable [chunkhash] in the bundle name --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index b2776e7..76f16e8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -27,7 +27,7 @@ module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'public', 'build'), - filename: 'bundle.js', + filename: isProduction ? 'bundle.[chunkhash].js' : 'bundle.js', publicPath: '/build/', }, module: {