Open KazariEX opened 1 month ago
cc @antfu
Currently, this is how Iconify generates those data. I don't consider this a very big issue as gzip should do the work already.
Also mention some of the trade-off if we going to do so:
width
and height
can be different for different icons..iconify
is too general to be a common class, as it is also shared with SVG mode. We might introduce a .iconify-css
and put the common props there. Which we also add that class name to every icon.So, in the end, it might still be useful to have such optimization, but I would expect somewhat around ~10% size improvements after gzip - if that still matters to you, PR is greatly welcome :)
Could the default CSS declarations be extracted into the
.iconify
rule?