Fix chunk IDs and source map file names
This commit is contained in:
parent
87021fff43
commit
bb8fed94eb
|
@ -67,13 +67,13 @@ module.exports = (env) => {
|
||||||
output: {
|
output: {
|
||||||
path: distFolder,
|
path: distFolder,
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
filename: '[name].[contenthash].js',
|
filename: '[name]-[contenthash].js',
|
||||||
sourceMapFilename: '[file]-[contenthash].map'
|
sourceMapFilename: '[file].map'
|
||||||
},
|
},
|
||||||
|
|
||||||
optimization: {
|
optimization: {
|
||||||
moduleIds: 'deterministic',
|
moduleIds: 'deterministic',
|
||||||
chunkIds: 'named'
|
chunkIds: isProduction ? 'deterministic' : 'named'
|
||||||
},
|
},
|
||||||
|
|
||||||
performance: {
|
performance: {
|
||||||
|
|
Loading…
Reference in New Issue