LESS compiling files through Grunt task
This commit is contained in:
parent
b4613f1d05
commit
023fa75ca3
20
Gruntfile.js
20
Gruntfile.js
|
@ -1,9 +1,25 @@
|
|||
module.exports = function(grunt){
|
||||
|
||||
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"]);
|
||||
|
||||
};
|
Loading…
Reference in New Issue