about summary refs log tree commit diff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-01-15 13:35:00 -0600
committerGitHub <noreply@github.com>2025-01-15 19:35:00 +0000
commite01fc2fbaf5a381c273bf8dbe762882604301c0b (patch)
tree04ee89f5aa5f72aedf788e2ab888139afee31886 /webpack.config.js
parentbeb1f2367abd16fd5d42fa238665a61f51043281 (diff)
downloadvoidsky-e01fc2fbaf5a381c273bf8dbe762882604301c0b.tar.zst
Only apply CDN fix to webpack in prod (#7461)
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js6
1 files changed, 3 insertions, 3 deletions
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({