DEV Community

Discussion on: How to Install FontAwesome with Yarn and Webpacker in Rails 6?

Collapse
 
metaphysiker profile image
Metaphysiker

How did you find out what to import? How did you know that it was "@fortawesome/fontawesome-free/css/all"?

Is there like a strategy or guide? Sometimes, I want to add something with yarn but I don't know what to import.

Thanks!

Collapse
 
radinreth profile image
radin reth

Once you install node packages using yarn or npm, it will download the package and store it directly inside node_modules directory in your current working directory.

so in this case, the package is stored in /node_modules/@fortawesome/fontawesome-free/css/all.[css|scss]

hope it help