Only apply CDN fix to webpack in prod (#7461)

This commit is contained in:
Eric Bailey
2025-01-15 13:35:00 -06:00
committed by GitHub
parent beb1f2367a
commit e01fc2fbaf
+2 -2
View File
@@ -28,10 +28,10 @@ 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'
}
if (GENERATE_STATS || OPEN_ANALYZER) {
config.plugins.push(