forked from yeoman/yeoman
-
Notifications
You must be signed in to change notification settings - Fork 0
Stylus integration
Zearin edited this page Jan 24, 2013
·
13 revisions
Download here
Run npm install -D grunt-contrib-stylus
. This will add it to your package.json
after installing.
(If you want to use the node-canvas fallback for gradients, you may also run npm install -D canvas
. See nib doc.)
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.registerTask('compass', ['stylus']);
stylus: {
compile: {
options: {
compress: true,
paths: ['node_modules/grunt-contrib-stylus/node_modules']
},
files: {
'app/styles/*.css': ['app/styles/*.styl']
}
}
},
The paths
definition let you do @import 'nib'
in stylesheets.
stylus: {
files: [
'app/styles/**/*.styl'
],
tasks: 'stylus reload'
},