Created
September 9, 2014 23:40
-
-
Save dbashford/579dd863709c3d9b8fa3 to your computer and use it in GitHub Desktop.
Managing switching between prod/dev versions of Ember
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
require: { | |
optimize: { | |
overrides: function( runConfig ) { | |
if ( !runConfig.paths ) { | |
runConfig.paths = {}; | |
} | |
// prod version of ember for optimized builds | |
runConfig.paths.ember = 'vendor/ember/ember.prod'; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have an
ember
alias in the app that we use all over the place. When running non-optimized builds, we use the dev version of ember, kept atvendor/ember/ember.js
, so the alias is forvendor/ember/ember
. When running with the--optimize
flag ticked, then we override that path withvendor/ember/ember.prod
which points toember.prod.js
.