Skip to content

Commit

Permalink
importmap-rails 2 defaults to preloading on
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jan 3, 2024
1 parent b91f0cf commit 38a7ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/turbo_with_importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
append_to_file "app/javascript/application.js", %(import "@hotwired/turbo-rails"\n)

say "Pin Turbo"
append_to_file "config/importmap.rb", %(pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true\n)
append_to_file "config/importmap.rb", %(pin "@hotwired/turbo-rails", to: "turbo.min.js"\n)

0 comments on commit 38a7ca6

Please sign in to comment.