Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.26 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.26 KB

Autoprefixer for Ember CLI

This addon runs the styles of your EmberCLI-project through autoprefixer.

NB: This addon requires Ember CLI version 0.0.39 or newer.

Install

To install, run

npm install ember-cli-autoprefixer --save-dev

Options

You can configure what browsers to target and other options by specifying them in your Brocfile.js. An example:

var app = new EmberApp({
  autoprefixer: {
    browsers: ['last 2 ios version'],
    cascade: false
  }
});

This would prefix styles as required by the two latest version of ios, and disable the cascade (see below). The default value for browsers are ['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1'].

Other options, such as cascade and sourcemap would also go here along with browsers.

You can read more about this setting and others over on the autoprefixer page and/or the page for broccoli-autoprefixer.

References