TrySound / postcss-inline-svg

PostCSS plugin to reference an SVG file and control its attributes with CSS syntax
MIT License
482 stars 38 forks source link

Some SVG became invisible after upgrading from 4.1.0 to 5.0.0 #80

Open zfeher opened 3 years ago

zfeher commented 3 years ago

During updating the dependencies of our build setup we run into an interesting issue regarding SVG images. Most of the SVG images are working nicely with postcss-inline-svg@5.0.0 but there are some which became invisible for some reason.

Extracted an example of this phenomenon: Invisible SVG icon The original SVG can be found in the JS panel in a comment. Comparing the two inlined SVGs there are bigger differences between them that we can see.

With the same build setup and postcss-inline-svg@4.1.0 this problem doesn't occur.

Could be an edge case. Let me know if I can provide more help.

peteluffman commented 3 years ago

Same issue here, however i'm also getting this with 4.1.0 when deploying to production and on colleague machines that have done fresh installs. This has only started happening recently which points towards a upstream dependency that is breaking things. On my local machine, the cached plugin installed a few months back is building fine.