FontAwesome TreeShaking With MdbIcon


Topic: FontAwesome TreeShaking With MdbIcon

digitalmanagerguru pro asked 2 months ago

Hi there,

is it possible to make use of Font Awesome TreeShaking with mdb-icon ? https://fontawesome.com/v5.9.0/how-to-use/with-the-api/other/tree-shaking

best regards


Mikołaj Smoleński staff commented 2 months ago

It is possible to use MDB tree-shaking option with mdbIcon component. https://mdbootstrap.com/docs/vue/getting-started/quick-start/#tree-shaking

Best regards


digitalmanagerguru pro commented 2 months ago

Will that only load the font awesome icons used with mdb-icon? That's my goal, to decrease font awesome library size. (I am using font awesome pro btw)


Mikołaj Smoleński staff commented 2 months ago

In that case I suggest to use FA tree-shaking instead of MDB Icon component. Best regards


digitalmanagerguru pro commented 2 months ago

I was hoping to hear that this could be added to the next version of the mdbIcon component. :P

Thanks for the reply. I'll create a customMdbIcon for that matter for now so I can load only the icons I use in the project.