w0rm / gulp-svgstore

Combine svg files into one with symbol elements
https://www.npmjs.com/package/gulp-svgstore
645 stars 33 forks source link

How to rename the generated combined svg files? #64

Closed kamlekar closed 8 years ago

kamlekar commented 8 years ago

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.

w0rm commented 8 years ago

Pipe the result through gulp-rename.

yoggsoft commented 2 years ago

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]"));