summaryrefslogtreecommitdiff
path: root/config/importmap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/importmap.rb')
-rw-r--r--config/importmap.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/importmap.rb b/config/importmap.rb
new file mode 100644
index 0000000..8dce42d
--- /dev/null
+++ b/config/importmap.rb
@@ -0,0 +1,7 @@
+# Pin npm packages by running ./bin/importmap
+
+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"