]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1305468 - Don't concatenate assets when PLACK_ENV ne development
authorEkta Parmar <ektap.098@gmail.com>
Mon, 3 Oct 2016 15:26:10 +0000 (11:26 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 3 Oct 2016 15:26:29 +0000 (11:26 -0400)
r=dylan

Bugzilla/Constants.pm

index 314e8e38c480a1356edd13c2df179bc05e4b6549..2e3f339a75ed32fe8ca8456221769ab7993cfc18 100644 (file)
@@ -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