Last active
March 10, 2023 08:50
-
-
Save spryffee/a9fdf8f05534c31457b13db3a2608b31 to your computer and use it in GitHub Desktop.
How to add fontawesome to Rails project using importmaps
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
bin/importmap pin @fortawesome/fontawesome-free | |
# add to app/javascript/applications.js | |
import "@fortawesome/fontawesome-free" | |
# add to config/importmap.rb | |
pin "@fortawesome/fontawesome-free", to: "https://ga.jspm.io/npm:@fortawesome/[email protected]/js/all.js" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment