mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Set celerity.minify
true in production environments.
Summary: I haven't been able to understand why this isn't set by default in production environments (since it is recommended to do so anyway). Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D8743
This commit is contained in:
parent
3e0b3a1db5
commit
e7419d85f7
3 changed files with 3 additions and 2 deletions
|
@ -980,7 +980,7 @@ return array(
|
||||||
|
|
||||||
// Minify static resources by removing whitespace and comments. You should
|
// Minify static resources by removing whitespace and comments. You should
|
||||||
// enable this in production, but disable it in development.
|
// enable this in production, but disable it in development.
|
||||||
'celerity.minify' => false,
|
'celerity.minify' => true,
|
||||||
|
|
||||||
// You can respond to various application events by installing listeners,
|
// You can respond to various application events by installing listeners,
|
||||||
// which will receive callbacks when interesting things occur. Specify a list
|
// which will receive callbacks when interesting things occur. Specify a list
|
||||||
|
|
|
@ -4,5 +4,6 @@ return array(
|
||||||
|
|
||||||
'phabricator.developer-mode' => true,
|
'phabricator.developer-mode' => true,
|
||||||
'darkconsole.enabled' => true,
|
'darkconsole.enabled' => true,
|
||||||
|
'celerity.minify' => false,
|
||||||
|
|
||||||
) + phabricator_read_config_file('default');
|
) + phabricator_read_config_file('default');
|
||||||
|
|
|
@ -97,7 +97,7 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
"This option enables verbose error reporting (stack traces, ".
|
"This option enables verbose error reporting (stack traces, ".
|
||||||
"error callouts) and forces disk reads of static assets on ".
|
"error callouts) and forces disk reads of static assets on ".
|
||||||
"every reload.")),
|
"every reload.")),
|
||||||
$this->newOption('celerity.minify', 'bool', false)
|
$this->newOption('celerity.minify', 'bool', true)
|
||||||
->setBoolOptions(
|
->setBoolOptions(
|
||||||
array(
|
array(
|
||||||
pht('Minify static resources.'),
|
pht('Minify static resources.'),
|
||||||
|
|
Loading…
Reference in a new issue