Skip to content

Commit

Permalink
howto specify browsers
Browse files Browse the repository at this point in the history
should close twbs#19
  • Loading branch information
bassjobsen committed Feb 7, 2016
1 parent 99b4f34 commit aef0cc3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,39 @@ Bootstrap requires the use of [Autoprefixer][autoprefixer].
If you are using bootstrap with Rails, autoprefixer is set up for you automatically.
Otherwise, please consult the [Autoprefixer documentation][autoprefixer].

You have to specify browsers for your Rails project, you can save them to

* `browserslist` and place it under `app/assets/stylesheets/` or any of its ancestor directories

```
Chrome >= 35
Firefox >= 38
Edge >= 12
Explorer >= 9
iOS >= 8
Safari >= 8
Android 2.3
Android >= 4
Opera >= 12
```

* Or `config/autoprefixer.yml`

```yaml
browsers:
- "Chrome >= 35"
- "Firefox >= 38"
- "Edge >= 12"
- "Explorer >= 9"
- "iOS >= 8"
- "Safari >= 8"
- "Android 2.3"
- "Android >= 4"
- "Opera >= 12"
```

See [Browserslist docs](https://github.com/ai/browserslist) for config format.

### Sass: Individual components

By default all of Bootstrap is imported.
Expand Down

0 comments on commit aef0cc3

Please sign in to comment.