Skip to content

RyukyuInteractive/autoprefixer-stylus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

253 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autoprefixer Stylus

An autoprefixer plugin for stylus.

npm tests coverage dependencies

Installation

You can install through npm as such: npm install autoprefixer-stylus

Usage

You can include autoprefixer-stylus as a normal stylus plugin. Basic example below:

var stylus = require("stylus");
var autoprefixer = require("autoprefixer-stylus");

stylus(css)
  .use(autoprefixer())
  .render(function(err, output) {
    console.log(output);
  });

This plugin also takes any of the options that autoprefixer normally takes, which at the time of writing is browsers and cascade. Example with browsers below:

stylus(css).use(autoprefixer({ browsers: ["last 2 versions"] }));

By default, this plugin will display any warnings. You can disable this with the hideWarnings option. Example below:

stylus(css)
  .use(autoprefixer({hideWarnings: true});

If you'd like to install globally and run from the command line, you can do it like this:

npm install -g autoprefixer-stylus
stylus -u autoprefixer-stylus -c example.styl

About

Autoprefixer for stylus

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%