about summary refs log tree commit diff
path: root/config/webpack/production.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-28 12:14:01 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-28 05:14:01 +0200
commitf93f30605321684baad373c9b26e11e93820807f (patch)
tree03e3a862220ae97835efd71487c9124a03bb39eb /config/webpack/production.js
parente67fc997dcb1c0e9e7e84d5f2d9247042024bfcb (diff)
Remove hash from chunk filename when dev env (#4411)
Diffstat (limited to 'config/webpack/production.js')
-rw-r--r--config/webpack/production.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js
index 64bdee47d..cd1dd91dc 100644
--- a/config/webpack/production.js
+++ b/config/webpack/production.js
@@ -10,7 +10,11 @@ const { publicPath } = require('./configuration.js');
 const path = require('path');
 
 module.exports = merge(sharedConfig, {
-  output: { filename: '[name]-[chunkhash].js' },
+  output: {
+    filename: '[name]-[chunkhash].js',
+    chunkFilename: '[name]-[chunkhash].js',
+  },
+
   devtool: 'source-map', // separate sourcemap file, suitable for production
   stats: 'normal',