-
-
Save adnasa/b2fe92444de294bda9cf to your computer and use it in GitHub Desktop.
A sample gruntfile.js I need to keep around when I need it :-)
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({ | |
less: { | |
// Development base task. | |
development : { | |
options : { | |
compress: true, | |
paths: ['components/bootstrap/less'] | |
}, | |
files :{ | |
// string|Array type of structure. | |
'css/style.css' : 'less/montic.less', | |
}, | |
} | |
}, | |
watch : { | |
styles : { | |
files : ['less/*.less'], | |
tasks : ['less'], | |
}, | |
options : { | |
livereload : true | |
} | |
} | |
}); | |
// Load plugins. | |
grunt.loadNpmTasks('grunt-contrib-less'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
// register default tasks. | |
grunt.registerTask('default', ['watch']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment