mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-25 21:11:30 +08:00
Incorrect package scope
This commit is contained in:
parent
e1458ba782
commit
0c218a3eef
@ -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 @@ library.add(solid, faTwitter)
|
|||||||
New way:
|
New way:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { library, dom } from '@fontawesome/fontawesome-svg-core'
|
import { library, dom } 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