Skip to content

Commit

Permalink
Document all options
Browse files Browse the repository at this point in the history
  • Loading branch information
porada committed Jul 25, 2014
1 parent fc52328 commit 5ae6c98
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,32 @@ activate :autoprefixer

## Configuration

The extension has 2 optionally configurable fields:
The extension has 4 optionally configurable fields:

```ruby
activate :autoprefixer do |config|
config.browsers = ['last 2 versions', 'Explorer >= 9']
config.cascade = false
config.inline = true
config.ignore = ['hacks.css']
end
```

Both fields take values (and use defaults) accordingly to [Autoprefixer’s](https://github.com/ai/autoprefixer#browsers) [documentation](https://github.com/ai/autoprefixer#visual-cascade).
### browsers

The list of targeted browsers. Takes values and uses defaults accordingly to [Autoprefixer’s documentation](https://github.com/ai/autoprefixer#browsers).

### cascade

The visual cascade of prefixed properties: `true` or `false`. Uses the default value accordingly to [Autoprefixer’s documentation](https://github.com/ai/autoprefixer#visual-cascade).

### inline

Whether to prefix inline styles within HTML files: `true` or `false`. Disabled by default.

### ignore

The array of patterns or paths to exclude from prefixing. Empty by default.

## License

Expand Down

0 comments on commit 5ae6c98

Please sign in to comment.