-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgulpfile.js
39 lines (34 loc) · 1.03 KB
/
gulpfile.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
var config, gulp, path, svgSprite;
gulp = require('gulp');
svgSprite = require('gulp-svg-sprite');
config = {
shape: {
spacing: {
padding: 1,
box: 'content'
},
dimension : { // Dimension related options
maxWidth : 2000, // Max. shape width
maxHeight : 2000, // Max. shape height
precision : 2, // Floating point precision
attributes : false
}
},
mode: {
css: {
dest: '../assets',
sprite: 'images/rademade_admin/sprite.svg',
bust: false,
render: {
scss: {
dest: 'stylesheets/mixins/_sprites.scss'
}
}
}
}
};
gulp.task('sprite', function () {
gulp.src('app/assets/images/rademade_admin/ico/*.svg')
.pipe(svgSprite(config))
.pipe(gulp.dest('app/assets/'));
});