I'm using the https://github.com/DevFactoryCH/minify package for minify the css and js files. but I'm getting issue with it when I compile my css files then minify remove the var() properties. this is my code with css variables
:root {
--primary-color: #1d85b9;
}
.info.icon-info {
background: #fff;
color: var(--primary-color)!important;
}
this is home.blade.php file code
{!! inline_css(Minify::stylesheet(array(
'/css/bootstrap.css',
'/css/style.css',
'/css/label.css',
))) !!}
its compile without var() properties Output:
.info.icon-info {
background: #fff;
}
Please suggest the alternate minify package for that
Stop using old, slow, and outdated technologies. This includes both the CSS minification library you're using, and PHP itself.
This one for NPM was updated 3 months ago: https://www.npmjs.com/package/css-minify
This one for PHP was updated 10 months ago: https://github.com/matthiasmullie/minify
Or, perhaps try this API out: https://www.toptal.com/developers/cssminifier/api