grunt watch and stylus
问题 can't figure how nesting grunt watch and stylus compiler (livereload will come later) I tried also using the "new" grunt newer, but there must be something wrong in my code. Any suggestion? grunt.initConfig({ stylus: { compile: { options: { paths: ['stylus'], import: [ 'nib/*' ] }, files: { 'css/style.css': 'stylus/style.styl', }, }, }, watch: { stylus: { files: ['*/*.*'], task: ['newer:stylus:compile'], options : { livereload: true }, }, }, }); grunt.loadNpmTasks('grunt-contrib-stylus');