Skip to content

Commit

Permalink
Document how to remove from production payload
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislopresto committed May 3, 2017
1 parent 7387f19 commit db7dd20
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,22 @@ Use the `freestyle-annotation` component to add a general purpose note.
Both the `freestyle-note` and `freestyle-annotation` components respect the
`Show Notes` usage controls preference.

## Removing Ember Freestyle from Your Production Payload

We recommend blacklisting Ember Freestyle for production builds using Ember CLI's [addon blacklist feature](https://ember-cli.com/user-guide/#whitelisting-and-blacklisting-assets).

```javascript
var environment = process.env.EMBER_ENV;
var pluginsToBlacklist = environment === 'production' ? ['ember-freestyle'] : [];

module.exports = function(defaults) {
var app = new EmberApp(defaults, {
addons: {
blacklist: pluginsToBlacklist
}
};
}
```
## Using Ember Freestyle Within an Addon
Expand Down

0 comments on commit db7dd20

Please sign in to comment.