Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-03-02 09:35:44 +0300
committerMike Greiling <mike@pixelcog.com>2017-03-04 01:47:38 +0300
commitba865db378b12265442c008a6fc167f2c3c910fb (patch)
tree0febff45704bddbf0b02e00785d97839bc92bc15 /config
parent7371f6cd8c168df41e4197f80f53f3c04185dee7 (diff)
separate webpack runtime into its own chunk to maintain cacheability of common chunk
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index a76daa2ba95..f262286f5f8 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -98,10 +98,9 @@ var config = {
new webpack.HashedModuleIdsPlugin() :
new webpack.NamedModulesPlugin(),
- // create a common.js bundle to be loaded on every page
+ // create cacheable common library bundles
new webpack.optimize.CommonsChunkPlugin({
- name: 'common',
- minChunks: Infinity,
+ names: ['application', 'common', 'manifest'],
}),
],