Skip to content

Commit

Permalink
Set webpack public path to auto to load from CDN (hopefully) (#7449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 authored Jan 15, 2025
1 parent 96054f4 commit beb1f23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit beb1f23

Please sign in to comment.