shakyShane / gulp-svg-sprites

Create SVG sprites or compile to <symbols>
MIT License
334 stars 45 forks source link

Silent Failure When Attempting to Import 600+ SVGs #61

Open ryanmillerdev opened 10 years ago

ryanmillerdev commented 10 years ago

The plugin fails silently when a large number of SVGs are passed in. Tried spriting 600+ with no resultant output, but a small number (I tried 3) works great. When I say "no resultant output" I mean the CSS file, sprited SVG file, and test HTML file are all created, but empty.

grippado commented 7 years ago

Anything about this? Same here with 115 svg files!

gravyraveydavey commented 7 years ago

Hey! Was having the same issue, but on a folder of only 5 SVGs - debugged it by moving the src path from /icons/*/.svg to an array of specific items and found that it was one particular SVG that was causing the blank output. Looking at the SVG with the issue, the file had a path with a D attribute and a stroke attribute with no space between. Adding the space allowed the file to process and now I can go back to the wildcard src. ...585V69.0015"stroke="currentColor" ... to ...585V69.0015" stroke="currentColor" ...

So double check your folder of SVGs for a malformed attributes.