Class lajax\assetminifier\minifiers\PhpCssMinifier
Inheritance | lajax\assetminifier\minifiers\PhpCssMinifier » yii\base\Object |
---|---|
Implements | lajax\assetminifier\minifiers\MinifierInterface |
Available since version | 1.0 |
Minifying css using php script
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$filters | array | VssMin Filter configuration. | lajax\assetminifier\minifiers\PhpCssMinifier |
$plugins | array | CssMin Plugin configuration. | lajax\assetminifier\minifiers\PhpCssMinifier |
Public Methods
Method | Description | Defined By |
---|---|---|
minify() | Function for minifying the asset file (css, js) received as a parameter. | lajax\assetminifier\minifiers\PhpCssMinifier |
Property Details
array $filters = ['ImportImports' => false, 'RemoveComments' => true, 'RemoveEmptyRulesets' => true, 'RemoveEmptyAtBlocks' => true, 'ConvertLevel3AtKeyframes' => false, 'ConvertLevel3Properties' => false, 'Variables' => true, 'RemoveLastDelarationSemiColon' => true]
VssMin Filter configuration.
array $plugins = ['Variables' => true, 'ConvertFontWeight' => true, 'ConvertHslColors' => true, 'ConvertRgbColors' => true, 'ConvertNamedColors' => true, 'CompressColorValues' => true, 'CompressExpressionValues' => true]
CssMin Plugin configuration.