-
Notifications
You must be signed in to change notification settings - Fork 7
Css Crush prefixer
gtbu edited this page Mar 25, 2024
·
4 revisions
Typesetter has under include/thirdparty/css-crush a minimizer and prefixer Csscrush, which is not yet implemented.
You must initialize it in a template (settings.php) with
require_once ('include/thirdparty/css-crush/CssCrush.php');
use CssCrush\Crush;
and call it in the template with
$file1 = DIR . '/stylecrush.css'; (better -> colordir)
echo csscrush_tag($file1);
P.S.: You should not minimize already prefixed files ! Leave them in the styles.css and make a seperate stylecrush.css for unprefixed files