Autoprefixer integration with Middleman
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features Simplify test Dec 21, 2015
fixtures Simplify test Dec 21, 2015
lib v2.9.0 Feb 14, 2018
.gitignore 💥 May 8, 2017
.travis.yml Test under specific Ruby versions May 8, 2017
CHANGELOG.md v2.9.0 Feb 14, 2018
Gemfile Update dependencies May 8, 2017
Gemfile3 Update dependencies May 8, 2017
README.md 💅 Feb 15, 2017
Rakefile 💅 May 8, 2017
middleman-autoprefixer.gemspec Update autoprefixer-rails dependency to 8.0 Feb 13, 2018

README.md

Gem version Build status Coveralls Dependency status

Middleman::Autoprefixer

Automatically vendor-prefix stylesheets served by Middleman.

Usage

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

Available options

browsers

The list of targeted browsers. Takes values and uses defaults accordingly to Autoprefixer’s documentation.

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 and is distributed under the MIT license.