Skip to content

Commit

Permalink
Only apply CDN fix to webpack in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jan 15, 2025
1 parent beb1f23 commit f6b26b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f6b26b9

Please sign in to comment.