FontAwesome Free

forked from FontAwesome Free

https://fontawesome.com/

Get vector icons and social logos on your website with Font Awesome, the web's most popular icon set and toolkit.
icon 1,029 0


Dave Kimura
Dave Kimura

May 21, 2020

Copy and paste this code into your terminal

DISCLAIMER: You should always review templates before running them. By running the template, you are agreeing to the terms of use.

The contents of this script as show. Any updates will be reflected in the below code and the snippet.

def yarn(lib)
  run("yarn add #{lib}")
end

yarn "@fortawesome/fontawesome-free"

inject_into_file 'app/javascript/packs/application.js' do <<~RAILS
  import '@fortawesome/fontawesome-free/js/all'
  import '@fortawesome/fontawesome-free/css/all.css'
  RAILS
end

A place where you can thank the author, post problems, give constructive feedback, etc. Be nice!