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!