Install Fontawesome in Rails 6

0

% yarn add @fortawesome/fontawesome-free
app/assets/stylesheets/application.scss
@import '@fortawesome/fontawesome-free/scss/fontawesome';
in any view
<i class="fas fa-dragon"></i>

https://medium.com/swlh/integrate-bootstrap-4-and-font-awesome-5-in-rails-6-fec52ee51753

  • 0 posts
  • 0 subtopics
  • 8 days ago by vince