mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-26 13:31:30 +08:00
Update UPGRADING.md
Fix typo in `@fortawesome/fontawesome` and `@fortawesome/fontawesome-svg-core`
This commit is contained in:
parent
28d2f62b6c
commit
a0e8313204
@ -61,7 +61,7 @@ What does that mean?
|
|||||||
~~Old way:~~
|
~~Old way:~~
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import fontawesome from '@fontawesome/fontawesome'
|
import fontawesome from '@fortawesome/fontawesome'
|
||||||
import solid from '@fortawesome/fontawesome-free-solid'
|
import solid from '@fortawesome/fontawesome-free-solid'
|
||||||
import faTwitter from '@fortawesome/fontawesome-free-brands/faTwitter'
|
import faTwitter from '@fortawesome/fontawesome-free-brands/faTwitter'
|
||||||
import FontAwesomeIcon from '@fortawesome/vue-fontawesome'
|
import FontAwesomeIcon from '@fortawesome/vue-fontawesome'
|
||||||
@ -72,7 +72,7 @@ import fontaweome.library.add(solid, faTwitter)
|
|||||||
New way:
|
New way:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { library } from '@fontawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/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'
|
||||||
|
Loading…
Reference in New Issue
Block a user