Skip to content

Commit

Permalink
Load jquery without importmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
kidhab committed Feb 22, 2023
1 parent 6403902 commit d82e587
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/javascript/application_legacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//= require jquery
1 change: 1 addition & 0 deletions app/views/layouts/application.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
= stylesheet_link_tag 'application'
= csrf_meta_tag
= javascript_importmap_tags
= javascript_include_tag "application_legacy"
%body
%nav{:class => "navbar navbar-expand-lg navbar-light bg-light"}
.container-fluid
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
Rails.application.config.assets.precompile += %w( application_legacy.js bootstrap.min.js popper.js )

0 comments on commit d82e587

Please sign in to comment.