Add less plugin.
This commit is contained in:
parent
6eeaf76e96
commit
542bce0ab6
@ -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
12
grunt-config/less.js
Normal 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'
|
||||
}
|
||||
}
|
||||
};
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user