summaryrefslogtreecommitdiff
path: root/config/importmap.rb
diff options
context:
space:
mode:
authorDavid Gay <eapoems@riseup.net>2024-04-13 19:24:03 -0400
committerDavid Gay <eapoems@riseup.net>2024-04-13 19:31:46 -0400
commit682488dc179cfe1ae8d6649e4b711533a8abfdda (patch)
treead8e6cc912bc583c381d909cb794663e43be8062 /config/importmap.rb
rails new --asset-pipeline=propshaft --skip-jbuilder --skip-action-mailer --skip-action-mailbox -d postgresql
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..909dfc5
--- /dev/null
+++ b/config/importmap.rb
@@ -0,0 +1,7 @@
+# Pin npm packages by running ./bin/importmap
+
+pin "application"
+pin "@hotwired/turbo-rails", to: "turbo.min.js"
+pin "@hotwired/stimulus", to: "stimulus.min.js"
+pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
+pin_all_from "app/javascript/controllers", under: "controllers"