How can I initialize font-awesome support in a non...
# kobweb
n
How can I initialize font-awesome support in a non-Kobweb application? (I'm using only lower-level features.) Simply adding the silk-icons-fa dependency and calling e.g.
FaBars()
does not work, the font-awesome CSS styles seem to be missing. Thanks.
It works if I explicitly import the @fortawesome/fontawesome-free module.
d
The Kobweb Gradle plugin checks if you are using the font-awesome icons library and adds the following to your
kobweb.app.index.head
property: https://github.com/varabyte/kobweb/blob/e4984af8ae9a4141bb7c9f965d338ddcbf4f6fc9/t[…]/kobweb/gradle/application/tasks/KobwebGenerateSiteIndexTask.kt If you are in a non-Kobweb project you probably have your own index.html file in there, so you can add this link element yourself manually.
1
🙏 1