Skip to content

Commit

Permalink
Write up some instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kimroen committed Jul 6, 2014
1 parent 3babf88 commit 04c5c2d
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions README.md
@@ -1,8 +1,33 @@
# [WIP] ember-cli-autoprefixer
This addon runs your compiled styles through `autoprefixer`.
# Autoprefixer for Ember CLI
This addon runs the styles of your EmberCLI-project through
`autoprefixer`.

## NOT USABLE
Waiting for this pull request to land: https://github.com/stefanpenner/ember-cli/pull/1214
*NB*: This addon requires Ember CLI version `0.0.39` or newer.

## Install
To install, run

```
npm install ember-cli-autoprefixer --save-dev
```

## Options
You can configure what browsers to target by specifying them in your
`Brocfile.js`. An example:

```js
var app = new EmberApp({
autoprefixer: {
browsers: ['last 2 ios version']
}
});
```

This would prefix styles as required by the two latest version of ios.

The default value for `browsers` are `['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1']`.

You can read more about this setting [over on the autoprefixer page](https://github.com/ai/autoprefixer#browsers).

## References
- [Autoprefixer](https://github.com/ai/autoprefixer)
Expand Down

0 comments on commit 04c5c2d

Please sign in to comment.