Back to Template

Diff of Changes

Previous version at this commit

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