Skip to content

Instantly share code, notes, and snippets.

@juanpasolano
Created March 23, 2014 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpasolano/9717609 to your computer and use it in GitHub Desktop.
Save juanpasolano/9717609 to your computer and use it in GitHub Desktop.
Basic grunt
module.exports = function (grunt) {
grunt.initConfig({
watch: {
less: {
files: ['www/css/less/*.less'],
tasks: ['less', 'notify:less']
}
},
less: {
dist: {
options: {
paths: ['www/css', 'www/css/less']
},
files: {
'www/css/main.css': 'www/css/less/main.less'
}
}
},
notify: {
less: {
options: {
message: 'LESS files compiled'
}
},
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-notify');
grunt.registerTask('default', ['watch']);
grunt.registerTask('watch-less', ['watch:less']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment