only include necessary moment locales
reduces vendor.js by 128KB in production build
This commit is contained in:
parent
148cf81f01
commit
d511417323
1 changed files with 1 additions and 3 deletions
|
@ -15,6 +15,7 @@ var app = new EmberApp({
|
||||||
},
|
},
|
||||||
|
|
||||||
'ember-moment': {
|
'ember-moment': {
|
||||||
|
'includeLocales': ['de', 'en', 'es'],
|
||||||
'includeTimezone': 'all'
|
'includeTimezone': 'all'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -75,9 +76,6 @@ app.import('bower_components/modernizr/modernizr.js');
|
||||||
|
|
||||||
app.import('bower_components/jstimezonedetect/jstz.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
|
// include webshim files into dist
|
||||||
trees.push(
|
trees.push(
|
||||||
pickFiles('bower_components/webshim/js-webshim/minified/shims', {
|
pickFiles('bower_components/webshim/js-webshim/minified/shims', {
|
||||||
|
|
Loading…
Reference in a new issue