Speed up builds by cutting corners given config and env

This commit is contained in:
Michael Lange 2018-11-01 14:19:22 -07:00
parent feaae8da65
commit be77e3d981
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,7 @@
/* eslint-env node */
const USE_MIRAGE = true;
module.exports = function(environment) {
var ENV = {
modulePrefix: 'nomad-ui',
@ -35,7 +37,8 @@ module.exports = function(environment) {
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV['ember-cli-mirage'] = {
// enabled: false,
enabled: USE_MIRAGE,
excludeFilesFromBuild: !USE_MIRAGE,
};
}

View File

@ -3,6 +3,7 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const environment = EmberApp.env();
const isProd = environment === 'production';
const isTest = environment === 'test';
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
@ -25,6 +26,14 @@ module.exports = function(defaults) {
babel: {
plugins: ['transform-object-rest-spread'],
},
'ember-cli-babel': {
includePolyfill: isProd,
},
hinting: isTest,
tests: isTest,
sourcemaps: {
enabled: false,
},
});
// Use `app.import` to add additional libraries to the generated