From: Ekta Parmar Date: Mon, 3 Oct 2016 15:26:10 +0000 (-0400) Subject: Bug 1305468 - Don't concatenate assets when PLACK_ENV ne development X-Git-Tag: release-5.1.2~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63f79c626077c29a0134a2e3a97d6fe0665e7200;p=thirdparty%2Fbugzilla.git Bug 1305468 - Don't concatenate assets when PLACK_ENV ne development r=dylan --- diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 314e8e38c4..2e3f339a75 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -234,7 +234,7 @@ use constant CAN_HAS_FEATURE => eval { # When true CSS and JavaScript assets will be concatanted and minified at # run-time, to reduce the number of requests required to render a page. # Setting this to a false value can help debugging. -use constant CONCATENATE_ASSETS => 1; +use constant CONCATENATE_ASSETS => $ENV{PLACK_ENV} ? $ENV{PLACK_ENV} ne "development" : 1; # These are unique values that are unlikely to match a string or a number, # to be used in criteria for match() functions and other things. They start