gulp-svg-sprites
gulp-svg-sprites copied to clipboard
Silent Failure When Attempting to Import 600+ SVGs
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.
Anything about this? Same here with 115 svg files!
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.