also gzip css files
This commit is contained in:
parent
b4221fb324
commit
d978609539
1 changed files with 6 additions and 1 deletions
7
mkht.php
7
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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue