Set webpack public path to auto to load from CDN (hopefully) (#7449)

This commit is contained in:
Jaz
2025-01-15 06:17:32 -08:00
committed by GitHub
parent 96054f4add
commit beb1f2367a
+3
View File
@@ -30,6 +30,9 @@ module.exports = async function (env, argv) {
config.plugins.push(new ReactRefreshWebpackPlugin()) config.plugins.push(new ReactRefreshWebpackPlugin())
} }
// Support static CDN for chunks
config.output.publicPath = 'auto'
if (GENERATE_STATS || OPEN_ANALYZER) { if (GENERATE_STATS || OPEN_ANALYZER) {
config.plugins.push( config.plugins.push(
new BundleAnalyzerPlugin({ new BundleAnalyzerPlugin({