From 3d263580867d26c00d7794c94b96d1e98befee1c Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Tue, 1 Jun 2021 04:52:01 +1000 Subject: [PATCH] Override chunk names --- crabfit-frontend/config-overrides.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crabfit-frontend/config-overrides.js b/crabfit-frontend/config-overrides.js index 5be481b..44e3ac7 100644 --- a/crabfit-frontend/config-overrides.js +++ b/crabfit-frontend/config-overrides.js @@ -3,5 +3,9 @@ module.exports = function override(config, env) { ? 'static/js/[name].[contenthash].js' : env === 'development' && 'static/js/bundle.js'; + config.output.chunkFilename = env === 'production' + ? 'static/js/[name].[contenthash].chunk.js' + : env === 'development' && 'static/js/[name].chunk.js'; + return config; }