Only apply CDN fix to webpack in prod

This commit is contained in:
Eric Bailey
2025-01-15 13:33:54 -06:00
committed by Hailey
parent 004522466e
commit abbd7461a1
+3
View File
@@ -28,6 +28,9 @@ 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) {