Created
October 18, 2016 13:33
-
-
Save amk221/f474737eb44241cb837ff3be83c14bbf to your computer and use it in GitHub Desktop.
Blacklist an Ember addon
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
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
module.exports = function(defaults) { | |
var env = EmberApp.env(); | |
var options = { | |
hinting: true, | |
sourcemaps: { | |
enabled: true | |
}, | |
fingerprint: { | |
enabled: true | |
}, | |
addons: { | |
blacklist: [] | |
} | |
}; | |
if (env === 'production') { | |
options.addons.blacklist.push('styleguide'); | |
} | |
var app = new EmberApp(defaults, options); | |
return app.toTree(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment