Class lajax\assetminifier\minifiers\PhpCssMinifier

Inheritancelajax\assetminifier\minifiers\PhpCssMinifier » yii\base\Object
Implementslajax\assetminifier\minifiers\MinifierInterface
Available since version1.0

Minifying css using php script

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$filters array VssMin Filter configuration. lajax\assetminifier\minifiers\PhpCssMinifier
$plugins array CssMin Plugin configuration. lajax\assetminifier\minifiers\PhpCssMinifier

Public Methods

Hide inherited methods

MethodDescriptionDefined By
minify() Function for minifying the asset file (css, js) received as a parameter. lajax\assetminifier\minifiers\PhpCssMinifier

Property Details

$filters public property
array $filters = ['ImportImports' => false'RemoveComments' => true'RemoveEmptyRulesets' => true'RemoveEmptyAtBlocks' => true'ConvertLevel3AtKeyframes' => false'ConvertLevel3Properties' => false'Variables' => true'RemoveLastDelarationSemiColon' => true]

VssMin Filter configuration.

$plugins public property
array $plugins = ['Variables' => true'ConvertFontWeight' => true'ConvertHslColors' => true'ConvertRgbColors' => true'ConvertNamedColors' => true'CompressColorValues' => true'CompressExpressionValues' => true]

CssMin Plugin configuration.

Method Details

minify() public method

Function for minifying the asset file (css, js) received as a parameter.

string minify$path )
$path string

The path of the asset file to be minified.

return string

The content of the asset file to be minified.