diff --git a/webpack.config.js b/webpack.config.js index 6f1de3b8b7..d0c8be75b6 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({