DEV Community

Discussion on: Font Awesome with VueJS 3

Collapse
 
adamkdean profile image
Adam K Dean • Edited

The way I've used it is very similar to you, except I extract the icons I use and only add them. Your article was still helpful so thank you for that, just required a little tweak as below and now the chunks are much smaller.

import { library } from '@fortawesome/fontawesome-svg-core'
import { faBell, faLock, faWarning } from '@fortawesome/free-solid-svg-icons'
library.add(faBell, faLock, faWarning)
Enter fullscreen mode Exit fullscreen mode

Some comments have been hidden by the post's author - find out more