broccoli-autoprefixer

Prefix CSS using Autoprefixer


Keywords
broccoli-plugin, autoprefixer, postcss, css, prefix, prefixes, stylesheet, preprocess, postcss-runner
License
MIT
Install
npm install broccoli-autoprefixer@9.0.0

Documentation

broccoli-autoprefixer

Prefix CSS using Autoprefixer

Issues with the output should be reported on the Autoprefixer issue tracker.

Install

$ npm install --save-dev broccoli-autoprefixer

Usage

const Autoprefixer = require('broccoli-autoprefixer');
tree = new Autoprefixer(tree, options);

API

Autoprefixer(tree, [options])

options

Type: Object

See the Autoprefixer options.

In addition, you can set this option:

sourcemap

Type: boolean
Default: true if the input has a sourcemap, otherwise false

Set to true to include a base64-encoded sourcemap at the end of the output.

If a sourcemap already exists in the input, Autoprefixer will automatically include an updated sourcemap in the output. Set this value to false to strip out the sourcemap entirely.

If you'd like to extract the inline sourcemap from the output, consider using a tool like broccoli-source-map.

License

MIT © Sindre Sorhus