-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
45 lines (42 loc) · 1.22 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-php');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
php: {
dist: {
options: {
keepalive: true,
open: true,
port: 8085
}
}
},
less: {
development: {
options: {
cleancss: true,
report: 'min'
},
files: {
"css/daux-blue.min.css": "less/daux-blue.less",
"css/daux-green.min.css": "less/daux-green.less",
"css/daux-navy.min.css": "less/daux-navy.less",
"css/daux-red.min.css": "less/daux-red.less"
}
}
},
watch: {
scripts: {
files: ['less/**/*.less'],
tasks: ['less'],
options: {
nospawn: true
},
},
},
});
//grunt.registerTask('default', ['less', 'watch']);
grunt.registerTask('default', ['php']);
};