From 0f49e232c0bf1c05385d9fb58b40f86ee1a0df86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 25 Feb 2021 16:46:31 +0100 Subject: [PATCH] Generate uncompressed stylesheet in developer mode --- .../install/files/lib/system/style/StyleCompiler.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index fc1cbcfeec..2d71ac04e5 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -69,7 +69,11 @@ final class StyleCompiler extends SingletonFactory $compiler->setEncoding('iso8859-1'); $compiler->setImportPaths([WCF_DIR]); - $compiler->setOutputStyle(OutputStyle::COMPRESSED); + if (\ENABLE_DEBUG_MODE && \ENABLE_DEVELOPER_TOOLS) { + $compiler->setOutputStyle(OutputStyle::EXPANDED); + } else { + $compiler->setOutputStyle(OutputStyle::COMPRESSED); + } return $compiler; } -- 2.20.1