From 2568a4280bd05d68d8edade50d3ebbe30566072e Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Fri, 8 Dec 2017 12:48:28 -0500 Subject: [PATCH] Reduce size of the commons.js bundle. Increase the number of bundles that a chunk has to appear in to be put into the commons.js bundle. This drastically reduces the size of the commons.js bundle (used basically everywhere on LMS and Studio) from 953K to 188K, mostly at the cost of making AccessibilityPage and AssetsPage (both Studio-only) larger -- 345K -> 1.1M, 91K -> 865K. --- 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 42f92106f2..28acec7e60 100644 --- a/webpack.common.config.js +++ b/webpack.common.config.js @@ -76,7 +76,7 @@ module.exports = { // common/djangoapps/pipeline_mako/templates/static_content.html name: 'commons', filename: 'commons.js', - minChunks: 2 + minChunks: 3 }) ],