Page 1 of 1

Primeicons import on demand

Posted: 26 Dec 2021, 05:16
by linda1089
Hi, I am using primevue and primeicons. Is there any way to import only the icons needed ? As when I run the build, the whole svg file is quite big though when I only use few of them. Any suggestion to reduce that? Thank you in advance.

Re: Primeicons import on demand

Posted: 14 Apr 2022, 09:30
by mert.sincan
Hi,

I'll see what we can do about it. It doesn't seem to be able to find a solution to this in other libraries, especially in FontAwesome.
https://blog.webjeda.com/optimize-fonta ... sary-files

Could you please create a Github issue at https://github.com/primefaces/primeicons? Thus, We can easily follow it.

Best Regards,

Re: Primeicons import on demand

Posted: 08 Dec 2022, 09:04
by periodicregard
I'll look into that and see what we can do. Other libraries, like FontAwesome, don't seem to have a solution for this problem.
flappy bird