File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed
Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change 11var fs = require ( 'fs' ) ;
22
33module . exports = function ( grunt ) {
4- var includePaths = [ 'webroot/js' , 'webroot/css' ] ;
5-
64 grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
75 grunt . loadNpmTasks ( 'grunt-contrib-less' ) ;
86
@@ -12,13 +10,15 @@ module.exports = function(grunt) {
1210 less : {
1311 dev : {
1412 options : {
15- paths : [ "webroot/css" ] // Include more paths here
13+ paths : [ "webroot/css" ]
1614 } ,
1715 files : {
18- "webroot/css/app.css" : "webroot/less/app.less"
16+ "webroot/css/global.css" : "webroot/less/global.less" ,
17+ "webroot/css/public.css" : "webroot/less/public.less" ,
18+ "webroot/css/admin.css" : "webroot/less/admin.less"
1919 }
2020 }
21- }
21+ } ,
2222
2323 watch : {
2424 php : {
@@ -30,15 +30,12 @@ module.exports = function(grunt) {
3030 '**/*.php'
3131 ] ,
3232 tasks : 'null'
33- }
33+ } ,
3434 less : {
35- styles : {
36- files : [ 'webroot/less/**/*.{css,less}' ] ,
37- tasks : [ 'build:css' ] ,
38- /*options: {
39- livereload: false
40- }*/
41- } ,
35+ files : [
36+ 'webroot/less/**/*.{css,less}'
37+ ] ,
38+ tasks : 'less'
4239 }
4340 }
4441 } ) ;
You can’t perform that action at this time.
0 commit comments