소스 검색

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

master
Yamagishi Kazutoshi 6 년 전
committed by Eugen Rochko
부모
커밋
f93f306053
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -1
      config/webpack/production.js
  2. +1
    -1
      config/webpack/shared.js

+ 5
- 1
config/webpack/production.js 파일 보기

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




+ 1
- 1
config/webpack/shared.js 파일 보기

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


불러오는 중...
취소
저장