You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run zat package, all my SVG-icons look broken.
When I start to investigate what’s going on I see that all the mask properties has been stripped from the resulting file.
You can see that the last <path> tag has no mask property, which breaks SVG and turns it into a simple rectangle instead of text with a mask.
Also it’s strange that this operation (compressing) is destructive on the source (it’s affecting svgs in zat/assets).
The text was updated successfully, but these errors were encountered:
kibin
changed the title
zat package removes properties when compressing SVGs
zat package removes mask property when compressing SVGs
Dec 22, 2020
When I run
zat package
, all my SVG-icons look broken.When I start to investigate what’s going on I see that all the
mask
properties has been stripped from the resulting file.Before (see next-to-last string, path tag):
After (with all the white spaces returned):
You can see that the last
<path>
tag has nomask
property, which breaks SVG and turns it into a simple rectangle instead of text with a mask.Also it’s strange that this operation (compressing) is destructive on the source (it’s affecting svgs in zat/assets).
The text was updated successfully, but these errors were encountered: