module.exports = function(grunt) { grunt.initConfig({ less: { development: { options: { compress: false, cleancss: false, optimization: 2, dumpLineNumbers: 'false' }, files: { "css/skeleton.css": "less/skeleton.less" } } }, watch: { options: { livereload: false, }, styles: { files: ['less/**/*.less'], // which files to watch tasks: ['less'], options: { nospawn: true } } } }); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.registerTask('default', ['less', 'watch']); };