forked from ginano/grunt-manifest-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
59 lines (54 loc) · 1.62 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* grunt-combopage
* https://github.com/ginano/grunt-combopage
*
* Copyright (c) 2013 ginano
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Configuration to be run (and then tested).
manifestGenerator: {
test: {
options:{
//is cache all the html files in source files
//{Boolean}
//default:true
includeHTML:true,
//is cache all the <img src=""/> images in the html files in source files
//{Boolean}
//default:true
includeHtmlImage:true,
//is cache all the style files imported by the html
//{Boolean}
//default:true
includeCSS:true,
//is cache all the background-images in the css contents, which were used by the html files
//{Boolean}
//default:true
includeCssImage:true,
//is cache all the js files in the html files
//{Boolean}
//default:true
includeJS:true,
//all the files above but the fllowwing files.
//{Array} the item could be writen as regexpress.
//default:[]
excludeFiles:['/\.png$/'],
//addtional files
extraFiles:['loading_faild.png']
},
files: {
'test.manifest': ['test/*.html'],
'index.manifest':['test/index.html']
}
}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// By default, lint and run all tests.
grunt.registerTask('default', ['manifestGenerator']);
};