This is the source code for the website of Serenum. https://serenum.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.2 KiB

<?php
require_once 'site-settings.php';
require_once 'vendor/autoload.php';
$css_files = [
'stylesheets/desktop.css',
'stylesheets/portable.css'
];
$minify_css = new \Bissolli\PhpMinifier\Minifier;
$minify_css->addCssFile($css_files);
$minify_css->minifyCss()->outputCss('stylesheets/desktop-portable.min.css');
$minify_diecontent = new \Bissolli\PhpMinifier\Minifier;
$minify_diecontent->addCssFile('stylesheets/die-content.css');
$minify_diecontent->minifyCss()->outputCss('stylesheets/die-content.min.css');
$minify_themedark = new \Bissolli\PhpMinifier\Minifier;
$minify_themedark->addCssFile('stylesheets/theme-dark.css');
$minify_themedark->minifyCss()->outputCss('stylesheets/theme-dark.min.css');
$minify_themelight = new \Bissolli\PhpMinifier\Minifier;
$minify_themelight->addCssFile('stylesheets/theme-light.css');
$minify_themelight->minifyCss()->outputCss('stylesheets/theme-light.min.css');
$minify_mainjs = new \Bissolli\PhpMinifier\Minifier;
$minify_mainjs->addJsFile('javascripts/main.js');
$minify_mainjs->minifyJs()->outputJs('javascripts/main.min.js');
die_content('Serenum, minified files', '<h2>Done</h2><p>The files has been minified.</p>');
?>