Skip to content

Commit

Permalink
Adjust bundle filenames for stats and debugging (#18677)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored Nov 22, 2023
1 parent cf355c4 commit 1526209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-scripts/webpack.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ const createWebpackConfig = ({
filename: ({ chunk }) =>
!isProdBuild || isStatsBuild || dontHash.has(chunk.name)
? "[name].js"
: "[name]-[contenthash].js",
: "[name].[contenthash].js",
chunkFilename:
isProdBuild && !isStatsBuild ? "[id]-[contenthash].js" : "[name].js",
isProdBuild && !isStatsBuild ? "[name].[contenthash].js" : "[name].js",
assetModuleFilename:
isProdBuild && !isStatsBuild ? "[id]-[contenthash][ext]" : "[id][ext]",
isProdBuild && !isStatsBuild ? "[id].[contenthash][ext]" : "[id][ext]",
crossOriginLoading: "use-credentials",
hashFunction: "xxhash64",
hashDigest: "base64url",
Expand Down

0 comments on commit 1526209

Please sign in to comment.