w0rm / gulp-svgstore

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

Output symbols only #67

Closed richardwiggins closed 8 years ago

richardwiggins commented 8 years ago

I was wondering if there is anyway to just output everything as <symbols> (like already happens), but without the <svg> wrapper and initial <defs><style> etc?

w0rm commented 8 years ago

<defs> have to be extracted because they don't work from within a <symbol> , you can read more about it here. If you don't use <defs>, I guess you can pipe the result through the gulp-cheerio.