Skip to content

Instantly share code, notes, and snippets.

@richardj
Forked from mitomex/Gruntfile.js
Last active August 29, 2015 14:02
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
stylus: {
compile: {
files: {
'public/stylesheets/style.css': 'public/stylesheets/*.styl'
},
options: {
compress: true
}
}
},
watch: {
stylus: {
files: ['public/stylesheets/*.styl'],
tasks: ['stylus']
}
},
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.registerTask('default', ['watch']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment