Skip to content

Replace material-icons with @material-design-icons/font#468

Merged
sronveaux merged 2 commits into
wegue-oss:masterfrom
sronveaux:md-to-mdfont
Dec 16, 2025
Merged

Replace material-icons with @material-design-icons/font#468
sronveaux merged 2 commits into
wegue-oss:masterfrom
sronveaux:md-to-mdfont

Conversation

@sronveaux
Copy link
Copy Markdown
Collaborator

This simple PR is part of the updates linked to #324.

I propose here to replace material-icons with @material-design-icons/font which, as stated in official Google repository is the same icon font but lighter as only the woff2 format is included. This removes an overhead of a bit more than 1MB in the build.

Comparison of the included woff2 binary files in both packages was done and they are identical as expected.

Dropping the woff format completely makes sense as woff2 is now correctly used by all mainstream browsers since 2016. Only in case of legacy browsers compatibility would this be needed which was dropped when transiting to Vite.
A note about this could be added, if you think it is useful, when proposing the Vite plugin (which removes all formats of @mdi except woff2) in an upcoming PR...

Copy link
Copy Markdown
Collaborator

@chrismayer chrismayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @sronveaux.

I am fine with the replacement. I did a quick visual check and everything seems to be OK in the UI.

@sronveaux sronveaux merged commit ca260a7 into wegue-oss:master Dec 16, 2025
1 of 3 checks passed
@sronveaux sronveaux deleted the md-to-mdfont branch December 16, 2025 14:00
@sronveaux sronveaux added enhancement dependecy upgrade Upgrade of a code dependency labels Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependecy upgrade Upgrade of a code dependency enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants