Add less plugin.

This commit is contained in:
Alexis Lahouze 2016-10-15 21:40:20 +02:00
parent 6eeaf76e96
commit 542bce0ab6
3 changed files with 19 additions and 0 deletions

View File

@ -101,6 +101,12 @@ module.exports = function(grunt) {
'wiredep:app'
]);
// Generate needed files.
grunt.registerTask('feGen', [
// Generate CSS from Less.
'newer:less:frontend'
]);
// Linting
grunt.registerTask('feLint', [
// ECMAScript

12
grunt-config/less.js Normal file
View File

@ -0,0 +1,12 @@
'use strict';
module.exports = {
frontendDev: {
options: {
paths: ['<%= accountant.frontend.src %>/css']
},
files: {
'<%= accountant.frontend.src %>/css/main.css': '<%= accountant.frontend.src %>/css/main.less'
}
}
};

View File

@ -22,6 +22,7 @@
"grunt-contrib-connect": "~1.0",
"grunt-contrib-csslint": "^2.0.0",
"grunt-contrib-cssmin": "~1.0",
"grunt-contrib-less": "^1.4.0",
"grunt-contrib-uglify": "~2.0",
"grunt-contrib-watch": "~1.0",
"grunt-copy": "^0.1.0",