kibana/tasks/config
Tyler Smalley 92b373b304
[optimizer] More aggressive chunking of common/vendor code (#15816)
Previously, we were not aggressive in combining common code which resulted in duplicates included in the bundles.

As an example `node_modules/elasticsearch-browser/elasticsearch.angular.js` is present in the following chunks:

* kibana.bundle.js
* dashboardViewer.bundle.js
* apm.bundle.js
* monitoring.bundle.js
* ml.bundle.js
* timelion.bundle.js
* graph.bundle.js

Vendor code (anything inside Kibana's node_modules) is placed in vendors.bundle.js while everything else with more than two references is placed in commons.bundle.js.

This has a couple positive side-effects (numbers are with x-pack & canvas):

* Decreased build time. Seeing builds go from 475.76 seconds to 274.72.
* Decreased memory overhead. Uses roughly 1/3 the memory overhead.
* Decreased bundle size. A 68% reduction in overall bundle size. Going from 66.16 MB to 21.13 MB.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-01-05 10:05:17 -08:00
..
aws_s3.js [eslint] enable no undef (#10825) 2017-03-22 07:08:23 -07:00
babel.js create babel-preset and babel-register modules (#13973) 2017-09-19 17:44:47 -07:00
build.js Allow build configuration to run on Windows machines (#9951) 2017-01-18 23:17:57 -05:00
clean.js [build] Clear the node version used to optimize (#15264) 2017-12-05 13:33:35 -06:00
copy.js [precommit hook] add dev script (#14890) 2017-11-20 14:22:24 -07:00
esvm.js Implement esTestCluster test util (#13099) 2017-07-28 09:47:41 -07:00
functional_test_runner.js [ftr] make room for more projects (#11848) 2017-05-17 18:53:45 -07:00
i18nextract.js [eslint] enable no undef (#10825) 2017-03-22 07:08:23 -07:00
karma.js [optimizer] More aggressive chunking of common/vendor code (#15816) 2018-01-05 10:05:17 -08:00
licenses.js EUI: Reset CSS #2 (#15657) 2017-12-18 16:43:32 -08:00
packages.js [build] Include full version in staging package prefix, set production prefix separately 2016-07-21 21:27:42 -05:00
platforms.js build: remove 32 bit builds (#11941) 2017-05-25 16:15:25 -04:00
run.js Create separate startup scripts for development and production (#13806) 2017-11-22 12:49:37 -06:00
s3.js [eslint] enable no undef (#10825) 2017-03-22 07:08:23 -07:00
services.js Upgrade to eslint 4 (#14862) 2017-11-14 18:16:59 -07:00
simplemocha.js [CI] Produce junit test reports (#15281) 2017-12-05 17:29:48 -07:00