Browse Source

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

pull/4/head
Yamagishi Kazutoshi 6 years ago
committed by Eugen Rochko
parent
commit
f93f306053
2 changed files with 6 additions and 2 deletions
  1. +5
    -1
      config/webpack/production.js
  2. +1
    -1
      config/webpack/shared.js

+ 5
- 1
config/webpack/production.js View File

@ -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',

+ 1
- 1
config/webpack/shared.js View File

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

Loading…
Cancel
Save