-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsvg_sprite.js
More file actions
executable file
·41 lines (41 loc) · 1.35 KB
/
Copy pathsvg_sprite.js
File metadata and controls
executable file
·41 lines (41 loc) · 1.35 KB
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
module.exports = function (grunt, options) {
var path = require('path');
return {
'common': {
expand: true,
cwd: './webApp/images/sprites/common',
src: ['*.svg'],
dest: './webApp/generated/svg_images/common',
options: {
shape: {
id: {
generator: function(file_path){
return path.basename(file_path, path.extname(file_path))
}
},
dimension: {
maxWidth: 52,
maxHeight: 52
},
spacing: {
padding: 4
},
},
mode: {
view: {
dest: './',
common: 'common',
bust: false,
sprite: 'common.svg',
render: {
scss: {
template: './grunt/template/scss.svg.sprite.template.handlebars',
dest: './../../../../src/sass/generated/sprites/_common.scss'
}
}
},
}
}
}
}
};