Skip to content

Instantly share code, notes, and snippets.

@mitomex
Created February 23, 2013 21:06
Show Gist options
  • Save mitomex/5021334 to your computer and use it in GitHub Desktop.
Save mitomex/5021334 to your computer and use it in GitHub Desktop.
Gruntfile.js Stylus
module.exports = function(grunt) {
grunt.initConfig({
stylus: {
compile: {
options: {
compress: false
},
files: {
'./css/style.css': ['./styl/style.styl']
}
}
},
watch: {
// Watch stylus files in "styl" directory
stylus: {
files: ['./styl/*.styl'],
tasks: ['stylus']
}
}
});
// Load the plugin that provides the "watch" & "stylus" tasks.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-stylus');
// Default task(s).
grunt.registerTask('default', ['watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment