osia-autoprefixer

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i osia-autoprefixer

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • programmatical