-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9996817
commit 53bac9e
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Integrate FontAwesome Icons | ||
* | ||
* Available Packages: | ||
* @fortawesome/free-solid-svg-icons | ||
* @fortawesome/free-regular-svg-icons | ||
* @fortawesome/free-brands-svg-icons | ||
* @fortawesome/pro-solid-svg-icons | ||
* @fortawesome/pro-regular-svg-icons | ||
* @fortawesome/pro-light-svg-icons | ||
* @fortawesome/pro-duotone-svg-icons | ||
* | ||
* You need to install needed packages first: | ||
* npm i -E @fortawesome/free-regular-svg-icons | ||
* | ||
* Access to the Pro packages requires you to configure the @fortawesome scope | ||
* to use teir Pro NPM registry. | ||
* @see https://fontawesome.com/how-to-use/on-the-web/setup/using-package-managers#installing-pro | ||
*/ | ||
|
||
import { library, dom } from '@fortawesome/fontawesome-svg-core'; | ||
|
||
/* SOLID */ | ||
import { faArrowCircleRight } from '@fortawesome/free-solid-svg-icons/faArrowCircleRight'; | ||
|
||
/* REGULAR */ | ||
|
||
/* LIGHT */ | ||
|
||
/* DUOTONE */ | ||
|
||
/* BRANDS */ | ||
|
||
/* register used fontawesome icons */ | ||
library.add( | ||
/* SOLID */ | ||
faArrowCircleRight, | ||
|
||
/* REGULAR */ | ||
|
||
/* LIGHT */ | ||
|
||
/* DUOTONE */ | ||
|
||
/* BRANDS */ | ||
); | ||
|
||
// Kicks off the process of finding <i> tags and replacing with <svg> | ||
dom.i2svg(); | ||
|
||
// use dom.watch if you plan to dynamically add <i> icon tag. | ||
// dom.watch(); |