There are some situations where we don't want to optimize SVGs.
For instance, when SVGs are the target of CSS animations, optimization can mess things up. Also, some project just optimize SVGs statically and there's simply no point in running SVGO again on already optimized code.
I suggest that when svgOptions is explicitly set to false this library can interpret that as completely disabling the SVGO pass. We can make it with a dedicated option, but I thought that reusing this one was ok.
There are some situations where we don't want to optimize SVGs.
For instance, when SVGs are the target of CSS animations, optimization can mess things up. Also, some project just optimize SVGs statically and there's simply no point in running SVGO again on already optimized code.
I suggest that when
svgOptions
is explicitly set tofalse
this library can interpret that as completely disabling the SVGO pass. We can make it with a dedicated option, but I thought that reusing this one was ok.Let me know what you think.