Reduce your bundle size through this component styling technique

1 Like

Hi, that’s a good article, I like the @HostBinding pattern you used.
I noticed also that default view encapsulation increases bundle size in about 5%-10% compared to not using view encapsulation.
Tree shaking don’t seems to work well for styles, and that’s a pity.
At work I’m doing internal management systems, so bundle size is less of an issue. but planning on developing my own web app, I would look in every way to cut the bundle size, and definitely look at styles architecture.
So thanks for the article.

1 Like

Thanks a lot, Do share your stats with others.