From beb1f2367abd16fd5d42fa238665a61f51043281 Mon Sep 17 00:00:00 2001 From: Jaz Date: Wed, 15 Jan 2025 06:17:32 -0800 Subject: Set webpack public path to auto to load from CDN (hopefully) (#7449) --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webpack.config.js') 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({ -- cgit 1.4.1