Remove hash from chunk filename when dev env (#4411)

lolsob-rspec
Yamagishi Kazutoshi 2017-07-28 12:14:01 +09:00 committed by Eugen Rochko
parent 56c021c349
commit f61858281c
2 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,11 @@ const { publicPath } = require('./configuration.js');
const path = require('path'); const path = require('path');
module.exports = merge(sharedConfig, { 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 devtool: 'source-map', // separate sourcemap file, suitable for production
stats: 'normal', stats: 'normal',

View File

@ -33,7 +33,7 @@ module.exports = {
output: { output: {
filename: '[name].js', filename: '[name].js',
chunkFilename: '[name]-[chunkhash].js', chunkFilename: '[name].js',
path: output.path, path: output.path,
publicPath: output.publicPath, publicPath: output.publicPath,
}, },