mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-25 21:11: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:
|
New way:
|
||||||
|
|
||||||
```javascript
|
```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 { fas } from '@fortawesome/free-solid-svg-icons'
|
||||||
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
|
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||||
|
|
||||||
import library.add(fas, faTwitter)
|
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:
|
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