https://github.com/middleman/middleman-autoprefixer
Autoprefixer integration with Middleman
https://github.com/middleman/middleman-autoprefixer
autoprefixer middleman middleman-extension
Last synced: 3 months ago
JSON representation
Autoprefixer integration with Middleman
- Host: GitHub
- URL: https://github.com/middleman/middleman-autoprefixer
- Owner: middleman
- Created: 2013-07-20T11:49:14.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T17:19:48.000Z (about 4 years ago)
- Last Synced: 2025-03-28T21:03:54.422Z (3 months ago)
- Topics: autoprefixer, middleman, middleman-extension
- Language: Ruby
- Size: 96.7 KB
- Stars: 116
- Watchers: 6
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
[](https://rubygems.org/gems/middleman-autoprefixer) [](https://travis-ci.org/middleman/middleman-autoprefixer) [](https://coveralls.io/r/middleman/middleman-autoprefixer) [](https://gemnasium.com/middleman/middleman-autoprefixer)
# Middleman::Autoprefixer
> Automatically vendor-prefix stylesheets served by Middleman.
## Usage
Add the following line to `Gemfile`, then run `bundle install`:
```ruby
gem 'middleman-autoprefixer'
```After installation, activate (and optionally configure) the extension in `config.rb`:
```ruby
activate :autoprefixer
``````ruby
activate :autoprefixer do |config|
config.browsers = ['last 2 versions', 'Explorer >= 9']
config.ignore = ['/stylesheets/hacks.css']
end
```## Available options
### browsers
The list of targeted browsers. Takes values and uses defaults accordingly to [Autoprefixer’s documentation](https://github.com/postcss/autoprefixer#browsers).
### add
Whether to add vendor prefixes: `true` or `false`. Enabled by default.
### remove
Whether to remove outdated prefixes: `true` or `false`. Enabled by default.
### cascade
The visual cascade of prefixed properties: `true` or `false`. Enabled by default.
### inline
Whether to process inline styles within HTML files: `true` or `false`. Disabled by default.
### ignore
The array of patterns or paths to exclude from processing. Empty by default.
## License
Middleman Autoprefixer was created by [Dominik Porada](https://github.com/porada) and is distributed under the [MIT](http://porada.mit-license.org/) license.