w0rm / gulp-svgstore

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

Preserve non-svg files in stream #91

Closed bobvanhesse closed 6 years ago

bobvanhesse commented 6 years ago

In case the stream includes non-svg files as well (i.e. json files with meta data), there will be no use trying to parse these files with cheerio. Also, quite possibly the user will want to preserve these files for different purposes.

w0rm commented 6 years ago

I've never encountered such use case in 4 years of this plugin. But, if you really want mixed files, you can use something like https://github.com/robrich/gulp-if to conditionally pipe svgs through.