also gzip css files

This commit is contained in:
Miraty 2024-09-23 23:45:33 +02:00
parent b4221fb324
commit d978609539

View file

@ -343,5 +343,10 @@ foreach ($dirs_entries_per_lang as $lang => $dirs_entries) {
}
}
if ($config['announce-css'])
if ($config['announce-css']) {
copy(ROOT . '/style.css', SITE . 'target/mkht-php.css');
if ($config['gzip'])
exec('gzip --keep --fast --force ' . SITE . 'target/mkht-php.css');
if (file_exists(SITE . 'style.css') && $config['gzip'])
exec('gzip --keep --fast --force ' . SITE . 'target/style.css');
}