From d5114173233944f49aa3e1a6fd20970639893934 Mon Sep 17 00:00:00 2001 From: jelhan Date: Fri, 31 Jul 2015 14:13:58 +0200 Subject: [PATCH] only include necessary moment locales reduces vendor.js by 128KB in production build --- Brocfile.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Brocfile.js b/Brocfile.js index 0e643dd..ffa3bf8 100644 --- a/Brocfile.js +++ b/Brocfile.js @@ -15,6 +15,7 @@ var app = new EmberApp({ }, 'ember-moment': { + 'includeLocales': ['de', 'en', 'es'], 'includeTimezone': 'all' } }); @@ -75,9 +76,6 @@ app.import('bower_components/modernizr/modernizr.js'); app.import('bower_components/jstimezonedetect/jstz.js'); -// moment locales aren't imported by ember-moment -app.import('bower_components/moment/min/locales.min.js'); - // include webshim files into dist trees.push( pickFiles('bower_components/webshim/js-webshim/minified/shims', {