dbushell / grunt-svg2png

Grunt plugin to rasterize SVG to PNG images using PhantomJS
MIT License
76 stars 37 forks source link

If no files have to be rasterized, it is not necessary to spawn the process #27

Closed kyusu closed 9 years ago

kyusu commented 9 years ago

Only a very minor improvement, but we are running the SVG2PNG grunt task quite often in our project and noticed that it is spawning the phantom process irregardless of the actual existence of SVGs. A little time can be saved by exiting earlier if no files are present.

kyusu commented 9 years ago

Thanks!