From 9d1f5e122490b23a9db6b76bcbec9bd8ba306332 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Wed, 10 Feb 2021 09:34:18 -0500 Subject: [PATCH] fix: reduce the size of the commons.js asset. (#26462) 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. --- webpack.common.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.common.config.js b/webpack.common.config.js index 2fd629a93e..c7d7a82118 100644 --- a/webpack.common.config.js +++ b/webpack.common.config.js @@ -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 }) ],