Skip to content

Instantly share code, notes, and snippets.

@adnasa
Created July 7, 2013 02:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adnasa/b2fe92444de294bda9cf to your computer and use it in GitHub Desktop.
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 :-)
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