Skip to content

Commit 3e167bc

Browse files
committed
Install importmap
- ran command `./bin/rails importmap:install` - the result is probably wrong for our config, but keeping this in a separate commit for clarity before reconfiguring - critically it failed to add anything to the application layout file, which we probably need to address in the layout component
1 parent 17a620a commit 3e167bc

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

app/assets/config/manifest.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
//= link static-error-pages.js
1414

1515
//= link_tree ../builds
16+
//= link_tree ../../javascript .js
17+
//= link_tree ../../../vendor/javascript .js

app/javascript/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails

bin/importmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env ruby
2+
3+
require_relative "../config/application"
4+
require "importmap/commands"

config/importmap.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Pin npm packages by running ./bin/importmap
2+
3+
pin "application"

vendor/javascript/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)