From 01c3f85d948662548b583b648b2ca7f464835727 Mon Sep 17 00:00:00 2001 From: Aymeric Le Dorze Date: Thu, 30 Nov 2023 16:54:26 +0100 Subject: [PATCH] CHOUETTE-3246 Fix double inclusion of webpack runtime --- app/views/layouts/application.html.slim | 3 +-- app/views/layouts/devise.html.slim | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 63573248f1..d2dcd7134a 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -20,9 +20,8 @@ html lang=I18n.locale // Webpack bundle = favicon_pack_tag 'static/favicon.ico' - = javascript_pack_tag 'application' - additional_packs = (yield :additional_packs).split.to_set.to_a - = javascript_pack_tag *(additional_packs), defer: true + = javascript_pack_tag 'application', *additional_packs, defer: true = stylesheet_pack_tag 'application' // Sprockets bundle diff --git a/app/views/layouts/devise.html.slim b/app/views/layouts/devise.html.slim index 91b1c2438d..6b8f3fcd8c 100644 --- a/app/views/layouts/devise.html.slim +++ b/app/views/layouts/devise.html.slim @@ -10,9 +10,8 @@ html lang=I18n.locale // Webpack bundle = favicon_pack_tag 'static/favicon.ico' - = javascript_pack_tag 'application' - additional_packs = (yield :additional_packs).split.to_set.to_a - = javascript_pack_tag *(additional_packs), defer: true + = javascript_pack_tag 'application', *additional_packs, defer: true = stylesheet_pack_tag 'application' // Sprockets bundle