DEV Community

kreuzerk
kreuzerk

Posted on • Originally published at Medium on

How to create a fully tree shakable icon library in Angular

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

Top comments (0)