summaryrefslogtreecommitdiff
path: root/templates/layouts/default.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-07-23 11:25:45 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-07-23 11:25:45 +0200
commitbe607983c14dfc260ec20e92b97265d016198040 (patch)
tree35a942e8a8c63d9e3afaddfe3f786d99cf344065 /templates/layouts/default.html.ep
parent9209cb292ec92e3b09ec5658542fcff367657bcd (diff)
do not use minified js in development mode
Diffstat (limited to 'templates/layouts/default.html.ep')
-rw-r--r--templates/layouts/default.html.ep10
1 files changed, 7 insertions, 3 deletions
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"