Skip to content

Commit db59fc2

Browse files
committed
Syntax corrections, more accurate defaults.
1 parent 83862e5 commit db59fc2

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

Gruntfile.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
var fs = require('fs');
22

33
module.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
});

0 commit comments

Comments
 (0)