1.0.0 • Published 8 years ago

osia-autoprefixer v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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

seanc
Sean Wilson