gulp-svg-sprites icon indicating copy to clipboard operation
gulp-svg-sprites copied to clipboard

Silent Failure When Attempting to Import 600+ SVGs

Open ryanmillerdev opened this issue 10 years ago • 2 comments

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.

ryanmillerdev avatar Oct 13 '14 03:10 ryanmillerdev

Anything about this? Same here with 115 svg files!

grippado avatar Aug 09 '17 21:08 grippado

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.

gravyraveydavey avatar Sep 28 '17 11:09 gravyraveydavey