Awesome
taskr-autoprefixer
PostCSS Autoprefixer plugin for Taskr.
This is a merely convenience layer for PostCSS + Autoprefixer.
You may elect to use @taskr/postcss
and require('autoprefixer')
instead. In fact, you probably should if you're using other PostCSS plugins!
Install
npm install --save-dev taskr-autoprefixer
Usage
exports.default = function * (task) {
yield task.source('src/**/*.sass')
.sass()
.autoprefixer({
browsers: ['last 5 versions']
})
.target('dist/css');
}
Note: If using a CSS preprocessing tool (eg: SASS, Stylus, LESS),
autoprefixer()
must be invoked after the CSS has been compiled.
API
.autoprefixer(options)
This plugin does not have any custom options. Please visit autoprefixer
options for a full list of available options.
License
MIT © Luke Edwards