Fix chunk IDs and source map file names

This commit is contained in:
Mark McDowall 2023-07-18 09:54:35 -07:00
parent 87021fff43
commit bb8fed94eb
1 changed files with 3 additions and 3 deletions

View File

@ -67,13 +67,13 @@ module.exports = (env) => {
output: {
path: distFolder,
publicPath: '/',
filename: '[name].[contenthash].js',
sourceMapFilename: '[file]-[contenthash].map'
filename: '[name]-[contenthash].js',
sourceMapFilename: '[file].map'
},
optimization: {
moduleIds: 'deterministic',
chunkIds: 'named'
chunkIds: isProduction ? 'deterministic' : 'named'
},
performance: {