/
Gruntfile.js
45 lines (42 loc) · 915 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
less: {
default: {
files: {
'assets/css/style.css': [
'assets/less/app.less'
],
}
}
},
inlinecss: {
default: {
files: {
'email.inline.html': 'email.html'
}
}
},
zip: {
default: {
src: [
'email.inline.html',
'assets/img/*',
'assets/css/style.css'
],
dest: 'builds/final.zip'
}
},
watch: {
less: {
files: ['assets/less/*.less', 'assets/less/bootstrap/*.less'],
tasks: ['less']
}
},
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-inline-css');
grunt.loadNpmTasks('grunt-zip');
grunt.registerTask('default', ['less', 'inlinecss', 'zip']);
};