about summary refs log tree commit diff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorJaz <ericvolp12@gmail.com>2025-01-15 06:17:32 -0800
committerGitHub <noreply@github.com>2025-01-15 14:17:32 +0000
commitbeb1f2367abd16fd5d42fa238665a61f51043281 (patch)
treec74c452339896becd6f98b80d66d38b5e92e7c09 /webpack.config.js
parent96054f4addb63994b3d2f5fe1d288f4dd3c246c2 (diff)
downloadvoidsky-beb1f2367abd16fd5d42fa238665a61f51043281.tar.zst
Set webpack public path to auto to load from CDN (hopefully) (#7449)
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 6f1de3b8b..d0c8be75b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -30,6 +30,9 @@ module.exports = async function (env, argv) {
     config.plugins.push(new ReactRefreshWebpackPlugin())
   }
 
+  // Support static CDN for chunks
+  config.output.publicPath = 'auto'
+
   if (GENERATE_STATS || OPEN_ANALYZER) {
     config.plugins.push(
       new BundleAnalyzerPlugin({