Automatically vendor-prefix stylesheets served by Middleman.
Add the following line to Gemfile
, then run bundle install
:
gem 'middleman-autoprefixer'
After installation, activate (and optionally configure) the extension in config.rb
:
activate :autoprefixer
activate :autoprefixer do |config|
config.browsers = ['last 2 versions', 'Explorer >= 9']
config.ignore = ['/stylesheets/hacks.css']
end
The list of targeted browsers. Takes values and uses defaults accordingly to Autoprefixer’s documentation.
Whether to add vendor prefixes: true
or false
. Enabled by default.
Whether to remove outdated prefixes: true
or false
. Enabled by default.
The visual cascade of prefixed properties: true
or false
. Enabled by default.
Whether to process inline styles within HTML files: true
or false
. Disabled by default.
The array of patterns or paths to exclude from processing. Empty by default.
Middleman Autoprefixer was created by Dominik Porada and is distributed under the MIT license.