diff --git a/variants/frontend-base/template.rb b/variants/frontend-base/template.rb index 1dca6831..011447dc 100644 --- a/variants/frontend-base/template.rb +++ b/variants/frontend-base/template.rb @@ -99,3 +99,14 @@ sass sass-loader ] + +# Setup Turbo +yarn_add_dependencies %w[ + @hotwired/turbo-rails +] +prepend_to_file "app/frontend/packs/application.js" do + <<~EO_CONTENT + + import "@hotwired/turbo-rails" + EO_CONTENT +end