-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
40 lines (38 loc) · 1.12 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
// The "wrapper" function
module.exports = function(grunt) {
// Do grunt-related things in here
// Project configuration.
grunt.initConfig({
// imports the JSON metadata stored in package.json
pkg: grunt.file.readJSON('package.json'),
// compiles LESS file to minified CSS
less: {
lutra: {
options: {
paths: ["./src/less", "./bellmaker/src/less"],
cleancss: true
},
files: {
"./src/main.css": "./src/less/main.less"
}
}
},
watch: {
// runs less task when any less files change
less: {
files: ["./src/less/*", "./bellmaker/src/less/*"],
tasks: ["less"]
},
html: {
files: "**/*.html"
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
// we'll also need uglify, autoprefixer, connect
grunt.registerTask('default', [
'less',
'watch'
]);
};