3 ms·
>This is generally a poor use of SVG as well, if your use of SVG is for static assets, don't transform all your SVG into react, leave it as SVG where it can be
by Sir_Cmpwn 9y ago
>This is generally a poor use of SVG as well, if your use of SVG is for static assets, don't transform all your SVG into react, leave it as SVG where it can be easily manipulated and editing by the plethora of tools that can work directly with SVG, previewed in the browser, etc. If you need you can inline the SVG into your CSS via a base64 URI, etc.
As valid as this seems on the surface, why can't transforming SVG into React be a build step where React is an intermediate artifact?
- tracker1 9y agoThe webpack option for this seems ideal for that even... I'd be far more interested in that than pre-transform steps.