From 49bc458ad792a095c5ab5ebfc6b3cdf2f655bb92 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Thu, 23 Nov 2017 16:39:29 -0600 Subject: optimized d3 v4 with a custom made bundle --- config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/webpack.config.js b/config/webpack.config.js index 78ced4c3e8c..e607043b309 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -32,7 +32,7 @@ var config = { boards: './boards/boards_bundle.js', common: './commons/index.js', common_vue: './vue_shared/vue_resource_interceptor.js', - common_d3: ['d3'], + common_d3: './common_d3/index.js', cycle_analytics: './cycle_analytics/cycle_analytics_bundle.js', commit_pipelines: './commit/pipelines/pipelines_bundle.js', deploy_keys: './deploy_keys/index.js', -- cgit v1.2.1 From 4e0e2fd9d297319f323b987944b58bfd3a14ba58 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Tue, 28 Nov 2017 13:33:17 -0600 Subject: Refactored d3 modules to instead of having a common_d3 dir, to use the micro modules instead --- config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/webpack.config.js b/config/webpack.config.js index e607043b309..bca27b0a41b 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -32,7 +32,7 @@ var config = { boards: './boards/boards_bundle.js', common: './commons/index.js', common_vue: './vue_shared/vue_resource_interceptor.js', - common_d3: './common_d3/index.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', -- cgit v1.2.1 From 8d822b1ece4f77e41214b81a3f1c92f8b1a65fe9 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Thu, 14 Dec 2017 14:01:30 -0600 Subject: added minChunks to the common_d3 bundle --- config/webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.1