-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
31 lines (28 loc) · 960 Bytes
/
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
module.exports = function (grunt) {
grunt.initConfig({
less: {
development: {
options: {
cleancss: true
},
files: {
"public/css/nano-bootstrap.css1.1.0": "public/less/bootstrap.less",
"public/css/nano-bootstrap.patch.css1.1.0": "public/less/patch.less",
"public/css/ashin.css": "public/less/ashin.less"
}
}
},
watch: {
files: ['public/less/*.less','public/less/mixins/*.less'],
tasks: ['less'],
options: {
spawn: false,
}
}
});
// 加载包含 "uglify" 任务的插件。
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
// 默认被执行的任务列表。
grunt.registerTask('default', ['less','watch']);
}