only include necessary moment locales

reduces vendor.js by 128KB in production build
This commit is contained in:
jelhan 2015-07-31 14:13:58 +02:00
parent 148cf81f01
commit d511417323

View file

@ -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', {