From 6e21e892bc0e33257eabdcb9b8c9949b6445f14a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 18 Jul 2023 09:54:35 -0700 Subject: [PATCH] Fix chunk IDs and source map file names (cherry picked from commit bb8fed94eb2c44040031643e8c20ff72de759535) --- frontend/build/webpack.config.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/build/webpack.config.js b/frontend/build/webpack.config.js index f331cbc0b..830e047e0 100644 --- a/frontend/build/webpack.config.js +++ b/frontend/build/webpack.config.js @@ -65,17 +65,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: {