From dc0ed52b06436daef0839e5fcedd64fc0b3c6e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 10:57:09 +0100 Subject: [PATCH] test inlining --- lib/inliner.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/inliner.php b/lib/inliner.php index 325fba1..4bf9247 100644 --- a/lib/inliner.php +++ b/lib/inliner.php @@ -58,13 +58,13 @@ function minifyCss($css) { function minifyJs($js) { // Remove block comments - $js = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $js); + //$js = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $js); // Remove line comments - $js = preg_replace('!(//.*)|(/\*.*?\*/)!s', '', $js); + //$js = preg_replace('!(//.*)|(/\*.*?\*/)!s', '', $js); // Remove newlines and tabs - $js = str_replace(array("\r\n", "\r", "\n", "\t"), '', $js); + //$js = str_replace(array("\r\n", "\r", "\n", "\t"), '', $js); // Remove spaces around operators $js = preg_replace('~\s*([=+\-*/])\s*~', '$1', $js);