diff --git a/mkht.php b/mkht.php index 79d2af2..ac61e7f 100755 --- a/mkht.php +++ b/mkht.php @@ -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'); +}