From 6c1d365487686ed1ce4c9fe8b8187951954569b1 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Sun, 29 May 2022 03:28:46 +0200 Subject: [PATCH] add the esbuild bundle to the application asset pipeline --- app/assets/javascripts/application.js | 3 +++ app/javascript/{application.js => application_esbuild.js} | 2 +- app/views/layouts/application.html.erb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename app/javascript/{application.js => application_esbuild.js} (71%) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index c0c529e42..b35ded0d2 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -33,3 +33,6 @@ //= require projects //= require submissions +//= require application_esbuild + + diff --git a/app/javascript/application.js b/app/javascript/application_esbuild.js similarity index 71% rename from app/javascript/application.js rename to app/javascript/application_esbuild.js index 84a0cfb30..239a786c0 100644 --- a/app/javascript/application.js +++ b/app/javascript/application_esbuild.js @@ -1,2 +1,2 @@ // Entry point for the build script in your package.json -import "./controllers" +import "./controllers" \ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 06bd0296e..92e5a4ce4 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -4,7 +4,7 @@ BioportalWebUi <%= stylesheet_link_tag "application", :media => "all" %> <%= csrf_meta_tags %> - <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %> + <%= javascript_include_tag "application"%>