Revert "Merge pull request #7506 from betagouv/brutally_fix_dynamic_import"
Bad idea, new browser do not get js anymore because of the nomodule attribute
This commit is contained in:
parent
a9a198aad8
commit
683cb54cca
1 changed files with 6 additions and 10 deletions
|
@ -15,17 +15,10 @@
|
||||||
|
|
||||||
= vite_client_tag
|
= vite_client_tag
|
||||||
= vite_react_refresh_tag
|
= vite_react_refresh_tag
|
||||||
|
|
||||||
- if vite_legacy?
|
|
||||||
= vite_legacy_javascript_tag 'application'
|
|
||||||
- if administrateur_signed_in?
|
|
||||||
= vite_legacy_javascript_tag 'track-admin'
|
|
||||||
- else
|
|
||||||
= vite_javascript_tag 'application'
|
= vite_javascript_tag 'application'
|
||||||
- if administrateur_signed_in?
|
- if administrateur_signed_in?
|
||||||
= vite_javascript_tag 'track-admin'
|
= vite_javascript_tag 'track-admin'
|
||||||
|
|
||||||
|
|
||||||
= preload_link_tag(asset_url("Muli-Regular.woff2"))
|
= preload_link_tag(asset_url("Muli-Regular.woff2"))
|
||||||
= preload_link_tag(asset_url("Muli-Bold.woff2"))
|
= preload_link_tag(asset_url("Muli-Bold.woff2"))
|
||||||
|
|
||||||
|
@ -50,6 +43,9 @@
|
||||||
- if content_for?(:footer)
|
- if content_for?(:footer)
|
||||||
= content_for(:footer)
|
= content_for(:footer)
|
||||||
|
|
||||||
|
- if vite_legacy?
|
||||||
|
= vite_legacy_javascript_tag 'application'
|
||||||
|
|
||||||
= yield :charts_js
|
= yield :charts_js
|
||||||
|
|
||||||
// Container for custom turbo-stream actions
|
// Container for custom turbo-stream actions
|
||||||
|
|
Loading…
Reference in a new issue