npm install grunt-contrib-stylus autoprefixer-stylus --save-dev
Last active
January 29, 2016 13:35
-
-
Save sapegin/6987625 to your computer and use it in GitHub Desktop.
How to use Autoprefixer plugin for Stylus with grunt-contrib-stylus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig | |
stylus: | |
options: | |
use: [ | |
() -> require('autoprefixer-stylus')('last 2 versions', 'ie 8') | |
] | |
compile: | |
files: | |
'build/styles.css': 'styles/index.styl' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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