-
Notifications
You must be signed in to change notification settings - Fork 9
/
Gruntfile.js
35 lines (30 loc) · 1.02 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
svgstore: {
logos: {
files: {
'declarations_site/catalog/static/images/svg-images-sprite.svg': 'images-svg/*.svg'
//use like <span class="svg-image logo"><svg preserveAspectRatio="xMidYMid" focusable="false"><use xlink:href="{{ static("images/svg-images-sprite.svg#bihus-logo") }}"></use></svg></span>
}
}
},
watch: {
grunt: {
files: ['Gruntfile.js']
},
svgstore: {
files: [
'images-svg/*.svg'
],
tasks: [ 'svgstore']
}
}
});
// load npm modules
grunt.loadNpmTasks('grunt-svgstore');
grunt.loadNpmTasks('grunt-contrib-watch');
// register tasks
grunt.registerTask('default', ['svgstore', 'watch']);
grunt.registerTask('jenkins', ['svgstore']);
};