Topic: FontAwesome TreeShaking With MdbIcon

digitalmanagerguru free asked 3 years 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 3 years 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 free commented 3 years 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 3 years ago

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


digitalmanagerguru free commented 3 years 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.


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Win.10
  • Provided sample code: No
  • Provided link: Yes