-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
49 lines (44 loc) · 1.04 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
/**
* @author Clément Désiles <[email protected]>
* @date 2014-09-09
* @see http://gruntjs.com/getting-started
* @see https://github.com/blueimp/grunt-locales
* Grunt task manager descriptor
*/
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
dataUri: {
dist: {
src: ['dist/browser-component.html'],
dest: 'dist',
options: {
target: ['icons/*.*']
}
}
},
vulcanize: {
options: { csp: true },
default: {
files: {
'dist/browser-component.html': 'lib/browser-component.html'
}
},
},
watch: {
components: {
files: ['lib/*'],
tasks: ['vulcanize', 'dataUri'],
options: {
spawn: false,
}
}
}
});
// Load grunt plugins
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-vulcanize');
grunt.loadNpmTasks('grunt-data-uri');
// Default task(s).
grunt.registerTask('default', ['vulcanize', 'dataUri']);
};