kind of works with importmaps
This commit is contained in:
parent
4be9a1420c
commit
a6a8d43758
5 changed files with 8 additions and 15 deletions
|
@ -1,5 +0,0 @@
|
||||||
//= link_tree ../images
|
|
||||||
//= link_directory ../stylesheets .css
|
|
||||||
//= link_tree ../../javascript .js
|
|
||||||
//= link_tree ../javascripts .js
|
|
||||||
//= link_tree ../../../vendor/javascript .js
|
|
|
@ -20,12 +20,11 @@
|
||||||
\==================================================
|
\==================================================
|
||||||
/ Placed at the end of the document so the pages load faster
|
/ Placed at the end of the document so the pages load faster
|
||||||
= javascript_importmap_tags
|
= javascript_importmap_tags
|
||||||
|
= javascript_include_tag "application_legacy"
|
||||||
|
|
||||||
-# = javascript_include_tag "application"
|
:javascript
|
||||||
|
I18n.defaultLocale = "#{I18n.default_locale}";
|
||||||
-# :javascript
|
I18n.locale = "#{I18n.locale}";
|
||||||
-# I18n.defaultLocale = "#{I18n.default_locale}";
|
I18n.fallbacks = true;
|
||||||
-# I18n.locale = "#{I18n.locale}";
|
= yield(:javascript)
|
||||||
-# I18n.fallbacks = true;
|
|
||||||
-# = yield(:javascript)
|
|
||||||
= raw FoodsoftConfig[:webstats_tracking_code]
|
= raw FoodsoftConfig[:webstats_tracking_code]
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
# Pin npm packages by running ./bin/importmap
|
# Pin npm packages by running ./bin/importmap
|
||||||
|
|
||||||
pin "application", preload: true
|
pin "application", preload: true
|
|
@ -9,4 +9,4 @@ Rails.application.config.assets.version = '1.0'
|
||||||
# Precompile additional assets.
|
# Precompile additional assets.
|
||||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||||
# folder are already added.
|
# folder are already added.
|
||||||
Rails.application.config.assets.precompile += %w( jquery.min.js )
|
Rails.application.config.assets.precompile += %w( application_legacy.js jquery.min.js )
|
||||||
|
|
Loading…
Reference in a new issue