Only apply CDN fix to webpack in prod (#7461)
This commit is contained in:
+3
-3
@@ -28,11 +28,11 @@ 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'
|
||||
}
|
||||
|
||||
// Support static CDN for chunks
|
||||
config.output.publicPath = 'auto'
|
||||
|
||||
if (GENERATE_STATS || OPEN_ANALYZER) {
|
||||
config.plugins.push(
|
||||
new BundleAnalyzerPlugin({
|
||||
|
||||
Reference in New Issue
Block a user