Answer the question
In order to leave comments, you need to log in
How to make an svg sprite?
Hello! Having trouble generating svg sprites with gulp. I found ready-made solutions, but nothing comes out, although there seem to be no errors, and the console writes that the task completed successfully. https://github.com/Kafkae/blog.github.io here are the sources. And this is the gulpfile https://github.com/Kafkae/blog.github.io/blob/mast...
Answer the question
In order to leave comments, you need to log in
In gulpfile.js, the slash is missing in the svg-sprite task:
gulp.task('svg-sprite', function(cb) {
return gulp.src('app/img/sprites*.svg')
.pipe(svgsprite(config))
.pipe(gulp.dest('app/img'));
});
('app/img/sprites/*.svg')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question