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-12-21 00:28:34 +0300
committerMike Greiling <mike@pixelcog.com>2017-12-21 00:28:34 +0300
commitecd1b816644080cc5ccab9c2eddaba9676b47b49 (patch)
tree89f98ff9653574a778400582629d5bd79c54725d /config
parent95c5d0d92ba5633b710b501ab64548789cbe4601 (diff)
parent8d822b1ece4f77e41214b81a3f1c92f8b1a65fe9 (diff)
Merge branch 'jivl-replace-d3-v3-v4' into 'master'
Update d3 to v4 to enable tree shaking (and reduce the size of our webpack bundles) Closes #37013 See merge request gitlab-org/gitlab-ce!15585
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index f02fcda827a..d8797bbf4d3 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -32,7 +32,6 @@ var config = {
boards: './boards/boards_bundle.js',
common: './commons/index.js',
common_vue: './vue_shared/vue_resource_interceptor.js',
- common_d3: ['d3'],
cycle_analytics: './cycle_analytics/cycle_analytics_bundle.js',
commit_pipelines: './commit/pipelines/pipelines_bundle.js',
deploy_keys: './deploy_keys/index.js',
@@ -225,6 +224,9 @@ var config = {
'monitoring',
'users',
],
+ minChunks: function (module, count) {
+ return module.resource && /d3-/.test(module.resource);
+ },
}),
// create cacheable common library bundles