Answer the question
In order to leave comments, you need to log in
Why is svgsprite not working?
Here is my project https://github.com/seriiserii825/bugfix
Here is the code in gulpfile.js
gulp.task('sprites', function () {
return gulp.src('src/assets/i/icons/svg/*.svg')
.pipe(svgSprite())
.pipe(gulp.dest("src/assets/")) // Write the sprite-sheet + CSS + Preview
.pipe(filter("**/*.svg")) // Filter out everything except the SVG file
.pipe(svg2png()) // Create a PNG
.pipe(gulp.dest("src/assets/"));
});
Answer the question
In order to leave comments, you need to log in
Our mistake, the fact is that the plugin is called gulp-svg-sprites, and I installed gulp-svg-sprite earlier, and I used it. Therefore, nothing happened. Now installed another plugin and everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question