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!
npm install --save-dev taskr-autoprefixer
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.
This plugin does not have any custom options. Please visit autoprefixer
options for a full list of available options.
MIT © Luke Edwards