1.0.0 • Published 8 years ago
osia-autoprefixer v1.0.0
osia-autoprefixer
Autoprefixer plugin for Osia
Installation
$ npm install osia-autoprefixer
Usage
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 |
1.0.0
8 years ago