Skip to content

Commit

Permalink
refactor: combine into one bundle other than mentioned in the entry
Browse files Browse the repository at this point in the history
  • Loading branch information
mudassir-hafeez committed Aug 23, 2024
1 parent 141ced7 commit 5632121
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ const devConfig = Object.assign({}, config, {
new BundleTracker({ filename: "./webpack-stats.json" }),
],
optimization: {
chunkIds: "named",
moduleIds: "named",
splitChunks: {
chunks: "all",
name: "common",
minChunks: 2,
automaticNameDelimiter: "-",
cacheGroups: {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ module.exports = Object.assign(prodConfig, {
],
optimization: {
minimize: true,
chunkIds: "named",
moduleIds: "named",
splitChunks: {
chunks: "all",
name: "common",
minChunks: 2,
automaticNameDelimiter: "-",
cacheGroups: {
Expand Down

0 comments on commit 5632121

Please sign in to comment.