Created
October 17, 2015 00:09
-
-
Save skylar/e1ca3ea34dbca53d63ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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