Install importmap-rails

This commit is contained in:
Trevor Vallender 2023-08-15 14:52:22 +01:00
parent 5dd9a0c446
commit 0a1f918c41
5 changed files with 10 additions and 0 deletions

View File

@ -1,2 +1,4 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js

View File

@ -0,0 +1 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails

4
bin/importmap Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env ruby
require_relative "../config/application"
require "importmap/commands"

3
config/importmap.rb Normal file
View File

@ -0,0 +1,3 @@
# Pin npm packages by running ./bin/importmap
pin "application", preload: true

0
vendor/javascript/.keep vendored Normal file
View File