From be607983c14dfc260ec20e92b97265d016198040 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 23 Jul 2023 11:25:45 +0200 Subject: do not use minified js in development mode --- templates/layouts/default.html.ep | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'templates/layouts/default.html.ep') diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index e0a44ab..d50ab30 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -59,12 +59,16 @@ % } %= javascript "/static/${av}/js/jquery-3.4.1.min.js" %= javascript "/static/${av}/js/materialize.min.js" - %= javascript "/static/${av}/js/travelynx-actions.min.js" + % my $min = ".min"; + % if (app->mode eq 'development') { + % $min = q{}; + % } + %= javascript "/static/${av}/js/travelynx-actions${min}.js" % if (stash('with_geolocation')) { - %= javascript "/static/${av}/js/geolocation.min.js" + %= javascript "/static/${av}/js/geolocation${min}.js" % } % if (stash('with_autocomplete')) { - %= javascript "/static/${av}/js/autocomplete.min.js" + %= javascript "/static/${av}/js/autocomplete${min}.js" % } % if (stash('with_map')) { %= javascript "/static/${av}/leaflet/leaflet.js" -- cgit v1.2.3