Browse Source

cleaned brocfile a little

Rafał Pitoń 10 years ago
parent
commit
cee8ee7da6
1 changed files with 4 additions and 5 deletions
  1. 4 5
      misago/emberapp/Brocfile.js

+ 4 - 5
misago/emberapp/Brocfile.js

@@ -43,11 +43,10 @@ app.import('vendor/bootstrap/affix.js');
 app.import('vendor/bootstrap/dropdown.js');
 app.import('vendor/bootstrap/modal.js');
 
-if (app.env === 'production') {
-  app.import('bower_components/moment/moment.js');
-} else {
-  app.import('bower_components/moment/min/moment-with-locales.js');
-}
+app.import({
+  production: 'bower_components/moment/moment.js',
+  development: 'bower_components/moment/min/moment-with-locales.js'
+});
 
 app.import('vendor/testutils/jquery.mockjax.js', { type: 'test' });
 app.import('vendor/testutils/django-js-catalog.js', { type: 'test' });