Fix svg_sprite build
This commit is contained in:
parent
3a07e510c9
commit
f2b732adba
1 changed files with 4 additions and 4 deletions
|
@ -59,10 +59,10 @@ const svgConfig = {
|
|||
common: 'icon',
|
||||
dimensions: '',
|
||||
prefix: '.icon-%s',
|
||||
sprite: "./img/sprites.svg",
|
||||
sprite: "../img/sprites.svg",
|
||||
render: {
|
||||
scss: {
|
||||
dest: "./css/src/sprite.scss"
|
||||
dest: "src/sprite.scss"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -147,9 +147,9 @@ gulp.task('watch-karma', (done) => {
|
|||
});
|
||||
|
||||
gulp.task('svg_sprite', () => {
|
||||
return gulp.src('**/*.svg', {cwd: '/img/src'})
|
||||
return gulp.src('**/*.svg', {cwd: 'img/src'})
|
||||
.pipe(svgSprite(svgConfig))
|
||||
.pipe(gulp.dest('..'));
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
gulp.task("vendor", () => {
|
||||
|
|
Loading…
Reference in a new issue