LESS compiling files through Grunt task

This commit is contained in:
Coen Jacobs 2014-01-30 17:34:23 +01:00
parent b4613f1d05
commit 023fa75ca3
1 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,25 @@
module.exports = function(grunt){ module.exports = function(grunt){
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON('package.json') // Compile specified less files
less: {
compile: {
options: {
// These paths are searched for @imports
paths: ["assets/css"]
},
files: {
"assets/css/woocommerce.css": "assets/css/woocommerce.less"
}
}
},
}); });
grunt.registerTask('default', []); // Load NPM tasks to be used here
grunt.loadNpmTasks("grunt-contrib-less");
// Register tasks
grunt.registerTask( 'default', []);
grunt.registerTask( 'dev', ["less:compile"]);
}; };