add importmap
This commit is contained in:
parent
fb21f3e851
commit
775f9b9910
2
Gemfile
2
Gemfile
@ -54,3 +54,5 @@ end
|
||||
gem "jsbundling-rails", "~> 1.0"
|
||||
|
||||
gem "cssbundling-rails", "~> 1.1"
|
||||
|
||||
gem "importmap-rails", "~> 1.1"
|
||||
|
@ -140,6 +140,9 @@ GEM
|
||||
multi_xml (>= 0.5.2)
|
||||
i18n (1.12.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
importmap-rails (1.1.5)
|
||||
actionpack (>= 6.0.0)
|
||||
railties (>= 6.0.0)
|
||||
io-console (0.5.11)
|
||||
io-wait (0.2.0)
|
||||
irb (1.4.2)
|
||||
@ -327,6 +330,7 @@ DEPENDENCIES
|
||||
guard-rspec
|
||||
haml-rails
|
||||
high_voltage (~> 3.1)
|
||||
importmap-rails (~> 1.1)
|
||||
io-wait (= 0.2.0)
|
||||
jsbundling-rails (~> 1.0)
|
||||
mina
|
||||
@ -350,4 +354,4 @@ RUBY VERSION
|
||||
ruby 3.0.4p208
|
||||
|
||||
BUNDLED WITH
|
||||
2.3.9
|
||||
2.3.26
|
||||
|
@ -1,2 +1,4 @@
|
||||
//= link_tree ../images
|
||||
//= link_tree ../builds
|
||||
//= link_tree ../../javascript .js
|
||||
//= link_tree ../../../vendor/javascript .js
|
||||
|
@ -0,0 +1 @@
|
||||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
3
config/importmap.rb
Normal file
3
config/importmap.rb
Normal file
@ -0,0 +1,3 @@
|
||||
# Pin npm packages by running ./bin/importmap
|
||||
|
||||
pin "application", preload: true
|
Loading…
Reference in New Issue
Block a user