From 2def069142289835bf2337e53ebd01ffd99ee491 Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Thu, 3 Jan 2019 00:16:19 +0100 Subject: [PATCH] deps: only include required component of Ember Boostrap in build This reduced the vendor.js size from 1.54 MB (395.39 KB gzipped) to 1.48 MB (385.52 KB gzipped). --- ember-cli-build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ember-cli-build.js b/ember-cli-build.js index 57525e3..96bbe93 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -13,7 +13,8 @@ module.exports = function(defaults) { 'ember-bootstrap': { importBootstrapCSS: false, 'bootstrapVersion': 3, - 'importBootstrapFont': true + 'importBootstrapFont': true, + whitelist: ['bs-alert', 'bs-button', 'bs-button-group', 'bs-form', 'bs-modal'], }, 'ember-cli-babel': { includePolyfill: true