do not use minified js in development mode

This commit is contained in:
Birte Kristina Friesel 2023-07-23 11:25:45 +02:00
parent 9209cb292e
commit be607983c1
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -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"