-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't preload any JS in importmap.rb
- Loading branch information
1 parent
f0d3963
commit a210b23
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Pin npm packages by running ./bin/importmap | ||
|
||
pin 'application', preload: true | ||
pin 'application', preload: false | ||
|
||
# Our JS files | ||
pin 'support' | ||
pin 'bootstrap', to: 'bootstrap.min.js' | ||
pin 'support', preload: false | ||
pin 'bootstrap', to: 'bootstrap.min.js', preload: false | ||
|
||
# Hotwired JS https://hotwired.dev | ||
pin '@hotwired/stimulus', to: 'stimulus.min.js', preload: true | ||
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js', preload: true | ||
pin '@hotwired/stimulus', to: 'stimulus.min.js', preload: false | ||
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js', preload: false | ||
|
||
pin_all_from 'app/javascript/controllers', under: 'controllers' | ||
pin_all_from 'app/javascript/controllers', under: 'controllers', preload: false |