Last active
August 29, 2015 13:57
-
-
Save JuanMaRuiz/9496194 to your computer and use it in GitHub Desktop.
Gruntfile.js default configuration
This file contains hidden or 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: { | |
options: { | |
paths: ["./css"], | |
compress: false | |
}, | |
files: { | |
"./css/style.css": "./less/style.less" | |
} | |
}, | |
production: { | |
options: { | |
paths: ["./"], | |
compress: true | |
}, | |
files: { | |
"./style.css": "./less/style.less" | |
} | |
} | |
}, | |
watch: { | |
css: { | |
files: './less/*.less', | |
tasks: ['less'], | |
options: { | |
livereload: true, | |
}, | |
}, | |
} | |
}); | |
grunt.registerTask('default', ['watch']); | |
grunt.loadNpmTasks('grunt-contrib-less'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment