diff --git a/frontend/build/webpack.config.js b/frontend/build/webpack.config.js index 9201a5e76..a5a69242f 100644 --- a/frontend/build/webpack.config.js +++ b/frontend/build/webpack.config.js @@ -67,17 +67,13 @@ module.exports = (env) => { output: { path: distFolder, publicPath: '/', - filename: '[name].js', + filename: '[name]-[contenthash].js', sourceMapFilename: '[file].map' }, optimization: { moduleIds: 'deterministic', - chunkIds: 'named', - splitChunks: { - chunks: 'initial', - name: 'vendors' - } + chunkIds: isProduction ? 'deterministic' : 'named' }, performance: {