Skip to content

Instantly share code, notes, and snippets.

@amk221
Created October 18, 2016 13:33
Show Gist options
  • Save amk221/f474737eb44241cb837ff3be83c14bbf to your computer and use it in GitHub Desktop.
Save amk221/f474737eb44241cb837ff3be83c14bbf to your computer and use it in GitHub Desktop.
Blacklist an Ember addon
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