w0rm / gulp-svgstore

Combine svg files into one with symbol elements

Home Page:https://www.npmjs.com/package/gulp-svgstore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to rename the generated combined svg files?

kamlekar opened this issue · comments

Currently when I generate using gulp, the generated file is taking the name of the source folder. But I want to rename the generated SVG file to something else.

Please help.

Pipe the result through gulp-rename.

A bit late in the conversation, but if someone's not familiar with gulp-rename, it's just like:

return gulp
.src("[path]")
.pipe(gulpSvgStore())
.pipe(rename({ basename: "[name-of-result]" }))
.pipe(gulp.dest("[destination]"));