From f93f30605321684baad373c9b26e11e93820807f Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 28 Jul 2017 12:14:01 +0900 Subject: Remove hash from chunk filename when dev env (#4411) --- config/webpack/production.js | 6 +++++- config/webpack/shared.js | 2 +- 2 files changed, 6 insertions(+), 2 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', diff --git a/config/webpack/shared.js b/config/webpack/shared.js index 4d865b816..b097a5fe4 100644 --- a/config/webpack/shared.js +++ b/config/webpack/shared.js @@ -33,7 +33,7 @@ module.exports = { output: { filename: '[name].js', - chunkFilename: '[name]-[chunkhash].js', + chunkFilename: '[name].js', path: output.path, publicPath: output.publicPath, }, -- cgit