FontAwesome TreeShaking With MdbIcon


Topic: FontAwesome TreeShaking With MdbIcon

digitalmanagerguru pro premium asked a year 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 a year 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 premium commented a year 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 a year ago

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


digitalmanagerguru pro premium commented a year 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.


Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Win.10
  • Provided sample code: No
  • Provided link: Yes