diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-12-21 09:42:28 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-12-21 09:42:28 -0600 |
commit | c46f7b2a2620a5b90003b40727bb3c1705dd1a0f (patch) | |
tree | 5808b9617af781c8cfb614d11540bdefc872851e /config/webpack.config.js | |
parent | 0e50e9d9d48752a58b640064075f7786f86e7433 (diff) | |
parent | 450317298ce177722b721353a0161d4347536120 (diff) | |
download | gitlab-ce-c46f7b2a2620a5b90003b40727bb3c1705dd1a0f.tar.gz |
Merge branch 'master' into fix-webpack-chunk-naming
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 0cb69141a73..f7063442618 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -32,10 +32,10 @@ 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', + docs: './docs/docs_bundle.js', diff_notes: './diff_notes/diff_notes_bundle.js', environments: './environments/environments_bundle.js', environments_folder: './environments/folder/environments_folder_bundle.js', @@ -70,7 +70,7 @@ var config = { protected_branches: './protected_branches', protected_tags: './protected_tags', registry_list: './registry/index.js', - repo: './repo/index.js', + ide: './ide/index.js', sidebar: './sidebar/sidebar_bundle.js', schedule_form: './pipeline_schedules/pipeline_schedule_form_bundle.js', schedules_index: './pipeline_schedules/pipeline_schedules_index_bundle.js', @@ -209,7 +209,7 @@ var config = { 'pipelines', 'pipelines_details', 'registry_list', - 'repo', + 'ide', 'schedule_form', 'schedules_index', 'sidebar', @@ -229,6 +229,9 @@ var config = { 'monitoring', 'users', ], + minChunks: function (module, count) { + return module.resource && /d3-/.test(module.resource); + }, }), // create cacheable common library bundles |