diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-12-14 14:01:30 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-12-18 16:31:56 -0600 |
commit | 8d822b1ece4f77e41214b81a3f1c92f8b1a65fe9 (patch) | |
tree | e574a864e0ac5d8d07742ca94bdab0c75360c3fc /config | |
parent | 38c5baeee1b42bfe29fa66af7c9bbe9cca1c99f7 (diff) | |
download | gitlab-ce-8d822b1ece4f77e41214b81a3f1c92f8b1a65fe9.tar.gz |
added minChunks to the common_d3 bundlejivl-replace-d3-v3-v4
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 bca27b0a41b..63af5f75ecd 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-selection', 'd3-scale', 'd3-array', 'd3-time-format', 'd3-shape', 'd3-time', 'd3-axis', 'd3-brush'], cycle_analytics: './cycle_analytics/cycle_analytics_bundle.js', commit_pipelines: './commit/pipelines/pipelines_bundle.js', deploy_keys: './deploy_keys/index.js', @@ -224,6 +223,9 @@ var config = { 'monitoring', 'users', ], + minChunks: function (module, count) { + return module.resource && /d3-/.test(module.resource); + }, }), // create cacheable common library bundles |