Autoprefixer for stylus
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.travis.yml chore: drop support for Node.js 0.10 (#128) Nov 1, 2016
index.js add option to disable printing warnings (#122) Oct 6, 2016
package.json 0.14.0 May 16, 2017

Autoprefixer Stylus

An autoprefixer plugin for stylus.

npm tests coverage dependencies


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


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

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

  .render(function(err, 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:

  .use(autoprefixer({ browsers: ['ie 7', 'ie 8'] }));

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

  .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