How to install Font awesome on Rails 6 APP

Rails 6.0 uses webpack as their default javascript compile engine and we can use Yarn to install it.

Step 1:

$ yarn add @fortawesome/fontawesome-free

Import font-awesome stylesheets and javascripts into your application.

Add this to your application.js file

You can test this in your application.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Khemlall Mangal

Khemlall Mangal

31 Followers

I am a passionate coder, QA Engineer, and someone who enjoys the outdoors.