Skip to content

seanc/osia-autoprefixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Autoperfixer plugin for Osia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published