osia-autoprefixer
v1.0.0
Published
Autoprefixer plugin for Osia
Readme
osia-autoprefixer
Autoprefixer plugin for Osia
Installation
$ npm install osia-autoprefixerUsage
import osia from 'osia';
import autoprefixer from 'osia-autoprefixer';
osia.task('autoprefix', () => {
osia.open('./foo.css')
.then(autoprefixer())
.then(osia.save('./'))
);Options
osia-autoprefixer uses postcss's autoprefixer natively, so you can pass options to it just as you would autoprefixer.
Example:
import osia from 'osia';
import autoprefixer from 'osia-autoprefixer';
osia.task('autoprefix',() =>
osia.open('./foo.css')
.then(autoprefixer({ browsers: ['last 2 versions'] }))
.then(osia.save('./'))
);Credits
| |
|:---:|
| Sean Wilson |
