loading...

How to create a fully tree shakable icon library in Angular

kreuzerk profile image kreuzerk Originally published at Medium on ・1 min read

Nearly every SPA uses icons. Often, we use icons delivered by a component library, such as Material, or we take icons from a dedicated icon library like font-awesome. In some cases, however, the icons need to match our brand. Therefore, we need to provide a custom icon library.

If you create an icon library, performance is something to consider. You don’t want to deliver a set of 300 icons to the user if they only are going to display two icons. Right?

Find out more

Discussion

pic
Editor guide