ryonakae
10/15/2013 - 6:59 AM

How to use Autoprefixer plugin for Stylus with grunt-contrib-stylus

How to use Autoprefixer plugin for Stylus with grunt-contrib-stylus

npm install grunt-contrib-stylus autoprefixer-stylus --save-dev
grunt.initConfig({
  stylus: {
		options: {
			use: [
				function() { return require('autoprefixer-stylus')('last 2 versions', 'ie 8'); }
			]
		}
		compile: {
			files: {
				'build/styles.css': 'styles/index.styl'
			}
		}
  }
});
grunt.initConfig  	
  stylus:
		options:
			use: [
				() -> require('autoprefixer-stylus')('last 2 versions', 'ie 8')
			]
		compile:
			files:
				'build/styles.css': 'styles/index.styl'