mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-24 20:41:30 +08:00
Update UPGRADING.md (#13010)
Add missing `import dom` and `dom.watch()`
This commit is contained in:
parent
28d2f62b6c
commit
6560d892d6
@ -72,12 +72,14 @@ import fontaweome.library.add(solid, faTwitter)
|
||||
New way:
|
||||
|
||||
```javascript
|
||||
import { library } from '@fontawesome/fontawesome-svg-core'
|
||||
import { library, dom } from '@fontawesome/fontawesome-svg-core'
|
||||
import { fas } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
|
||||
import library.add(fas, faTwitter)
|
||||
|
||||
dom.watch()
|
||||
```
|
||||
|
||||
This is also a valid way to import icons that works if your tool does not support tree shaking:
|
||||
|
Loading…
Reference in New Issue
Block a user