Fix svg_sprite build

This commit is contained in:
Raimund Schlüßler 2018-08-11 12:10:11 +02:00
parent 3a07e510c9
commit f2b732adba
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -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", () => {