diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-12-20 21:28:34 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-12-20 21:28:34 +0000 |
commit | ecd1b816644080cc5ccab9c2eddaba9676b47b49 (patch) | |
tree | 89f98ff9653574a778400582629d5bd79c54725d /config | |
parent | 95c5d0d92ba5633b710b501ab64548789cbe4601 (diff) | |
parent | 8d822b1ece4f77e41214b81a3f1c92f8b1a65fe9 (diff) | |
download | gitlab-ce-ecd1b816644080cc5ccab9c2eddaba9676b47b49.tar.gz |
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.js | 4 |
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 |