Skip to content

Instantly share code, notes, and snippets.

@sapegin
Last active January 29, 2016 13:35
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapegin/6987625 to your computer and use it in GitHub Desktop.
Save sapegin/6987625 to your computer and use it in GitHub Desktop.
How to use Autoprefixer plugin for Stylus with grunt-contrib-stylus
grunt.initConfig
stylus:
options:
use: [
() -> require('autoprefixer-stylus')('last 2 versions', 'ie 8')
]
compile:
files:
'build/styles.css': 'styles/index.styl'
grunt.initConfig({
stylus: {
options: {
use: [
function() { return require('autoprefixer-stylus')('last 2 versions', 'ie 8'); }
]
}
compile: {
files: {
'build/styles.css': 'styles/index.styl'
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment