Skip to content

Commit

Permalink
fix: reduce the size of the commons.js asset. (#26462)
Browse files Browse the repository at this point in the history
The size of commons.js has gradually grown until it is now 4 MB in
dev mode. This change brings it back down to 880 KB. This does
cause the size of some other JS assets to increase, some by as much
as 500 KB. This still seemed like a worthwhile tradeoff.
  • Loading branch information
David Ormsbee authored Feb 10, 2021
1 parent 5c9c617 commit 9d1f5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ module.exports = Merge.smart({
// common/djangoapps/pipeline_mako/templates/static_content.html
name: 'commons',
filename: 'commons.js',
minChunks: 3
minChunks: 10
})
],

Expand Down

0 comments on commit 9d1f5e1

Please sign in to comment.