middleman / middleman-autoprefixer

Autoprefixer integration with Middleman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Autoprefixer integration with Middleman


Languages

Language:Ruby 58.6%Language:Gherkin 23.5%Language:Dockerfile 8.5%Language:CSS 5.2%Language:HTML 3.4%Language:SCSS 0.4%Language:Sass 0.3%