Skip to content

Commit

Permalink
Fix some paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jan 3, 2024
1 parent 5d20b21 commit 59b6862
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ Example:

```ruby
# config/importmap.rb
pin "@github/hotkey", to: "vendor/javascript/@github--hotkey.js"
pin "md5", to: "vendor/javascript/md5.js", preload: false
pin "@github/hotkey", to: "@github--hotkey.js" # file lives in vendor/javascript/@github--hotkey.js
pin "md5", preload: false # file lives in vendor/javascript/md5.js

# app/views/layouts/application.html.erb
<%= javascript_importmap_tags %>
# will include the following link before the importmap is setup:
<link rel="modulepreload" href="/assets/javascripts/@github--hotkey.js">
<link rel="modulepreload" href="/assets/javascript/@github--hotkey.js">
...
```

Expand Down

0 comments on commit 59b6862

Please sign in to comment.