Skip to content

Instantly share code, notes, and snippets.

@skylar
Created October 17, 2015 00:09
Show Gist options
  • Select an option

  • Save skylar/e1ca3ea34dbca53d63ff to your computer and use it in GitHub Desktop.

Select an option

Save skylar/e1ca3ea34dbca53d63ff to your computer and use it in GitHub Desktop.
module.exports = function(defaults) {
var env = EmberApp.env(),
isProductionLikeBuild = ('production' === env) || ('staging' === env);
var app = new EmberApp(defaults, {
minifyCSS: { enabled: !!isProductionLikeBuild },
minifyJS: { enabled: !!isProductionLikeBuild },
fingerprint: {
enabled: !!isProductionLikeBuild,
generateRailsManifest: true,
exclude: ['manifest.json']
},
sourcemaps: {
enabled: !isProductionLikeBuild
},
wrapInEval: !isProductionLikeBuild,
tests: !isProductionLikeBuild,
hinting: !isProductionLikeBuild,
vendorFiles: {
'ember.js': {
staging: 'bower_components/ember/ember.prod.js'
},
'ember-data.js': {
staging: 'bower_components/ember-data/ember-data.prod.js'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment