Skip to content

Instantly share code, notes, and snippets.

@thatmarvin
Last active December 22, 2015 20:49
Show Gist options
  • Save thatmarvin/6528950 to your computer and use it in GitHub Desktop.
Save thatmarvin/6528950 to your computer and use it in GitHub Desktop.
module.exports = function (grunt) {
grunt.initConfig({
stylus: {
compile: {
options: {
compress: true,
use: [ require('bootstrap.stylus') ]
},
files: [{
expand: true,
cwd: 'public/styl',
src: [ filepath ],
dest: 'public/dist/css',
ext: '.css',
}]
}
},
watch: {
options: {
livereload: true
},
stylus: {
files: ['public/styl/**/*.styl'],
tasks: ['stylus']
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-stylus');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment