From e01fc2fbaf5a381c273bf8dbe762882604301c0b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 15 Jan 2025 13:35:00 -0600 Subject: Only apply CDN fix to webpack in prod (#7461) --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index d0c8be75b..3302c47a4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -28,11 +28,11 @@ module.exports = async function (env, argv) { ] if (env.mode === 'development') { config.plugins.push(new ReactRefreshWebpackPlugin()) + } else { + // Support static CDN for chunks + config.output.publicPath = 'auto' } - // Support static CDN for chunks - config.output.publicPath = 'auto' - if (GENERATE_STATS || OPEN_ANALYZER) { config.plugins.push( new BundleAnalyzerPlugin({ -- cgit 1.4.1