Skip to content

Commit

Permalink
Merge branch 'bundlesize-compare' into bundlesize-compare-client-synt…
Browse files Browse the repository at this point in the history
…ax-highlight
  • Loading branch information
LeoMcA committed Sep 6, 2024
2 parents 02ff849 + 22c6a74 commit ca6031d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ function config(webpackEnv) {
level: "none",
},
optimization: {
chunkIds: isEnvProduction ? "natural" : "named",
moduleIds: isEnvProduction ? "natural" : "named",
splitChunks: {
name: (_, chunks, cacheGroupKey) => {
return `${cacheGroupKey === "defaultVendors" ? "vendor" : cacheGroupKey}-${chunks.map(({ name }) => name).join("~")}`;
},
},
minimize: isEnvProduction,
minimizer: [
// This is only used in production mode
Expand Down

0 comments on commit ca6031d

Please sign in to comment.