Rails 7 RC1 updates

This commit is contained in:
Ryan W
2021-12-06 15:02:04 -08:00
parent a817e3c457
commit 5f9a0520c4
15 changed files with 145 additions and 122 deletions
+6 -9
View File
@@ -1,10 +1,7 @@
# Use direct uploads for Active Storage (remember to import "@rails/activestorage" in your application.js)
# pin "@rails/activestorage", to: "activestorage.esm.js"
# Pin npm packages by running ./bin/importmap
# Use node modules from a JavaScript CDN by running ./bin/importmap
pin 'application'
pin '@hotwired/turbo-rails', to: 'turbo.js'
pin '@hotwired/stimulus', to: 'stimulus.js'
pin '@hotwired/stimulus-importmap-autoloader', to: 'stimulus-importmap-autoloader.js'
pin_all_from 'app/javascript/controllers', under: 'controllers'
pin "application", preload: true
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
pin_all_from "app/javascript/controllers", under: "controllers"