Created
February 23, 2013 21:06
-
-
Save mitomex/5021334 to your computer and use it in GitHub Desktop.
Gruntfile.js Stylus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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