test inlining

This commit is contained in:
Bruno Rybársky 2024-02-04 11:11:38 +01:00
parent b5f16cc109
commit f46690a814

@ -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);