From f46690a814a2b91860c5bc34ca453d89497debe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 11:11:38 +0100 Subject: [PATCH] test inlining --- lib/inliner.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/inliner.php b/lib/inliner.php index 5c078f8..676a2be 100644 --- a/lib/inliner.php +++ b/lib/inliner.php @@ -43,14 +43,11 @@ function inlineScriptFromSrc($inputString) { function minifyCss($css) { // Remove comments - $css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css); + //$css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css); // Remove whitespace $css = preg_replace('/\s+/', ' ', $css); - // Remove unnecessary semicolons - $css = str_replace(';}', '}', $css); - // Remove spaces around colons $css = str_replace(' ', '', $css);