DEV Community

Cover image for Propshaft with FontAwesome
haroldus-
haroldus-

Posted on

Propshaft with FontAwesome

  1. Download FontAwesome https://fontawesome.com/download
  2. Vendor all.min.css and the webfonts

    vendor/assets/
    ├── stylesheets/
    │   └── all.min.css
    ├── webfonts/
    │   └── fa-solid-900.woff2
    |   └── etc.
    
  3. Probably rename all.min.css to fontawesome.min.css

  4. Delete references to ../webfonts/ in the css file (noting rails assets:reveal)

  5. Now add <%= stylesheet_link_tag "fontawesome.min.css", "data-turbo-track": "reload" %> to layouts/application.html.erb

Top comments (0)