Class lajax\assetminifier\Component

Inheritancelajax\assetminifier\Component » yii\base\Object
Available since version1.0

Component performing the minification and combination of asset files.

Minimal configs:

'bootstrap' => ['assetMinifier'],
'components' => [
     'assetMinifier' => [
         'class' => lajax\assetminifier\Component::className()
     ]
]

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$combine boolean Enable combination of asset files. lajax\assetminifier\Component
$combiner lajax\assetminifier\Combiner Object performing concatenation of asset files. lajax\assetminifier\Component
$createGz boolean Create corresponding . lajax\assetminifier\Component
$minifier lajax\assetminifier\Minifier Object performing minification of asset files. lajax\assetminifier\Component
$minifyCss boolean Enable minification of StyleSheet files. lajax\assetminifier\Component
$minifyJs boolean Enable minification of JavaScript files. lajax\assetminifier\Component

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() lajax\assetminifier\Component
process() Minifying and concatenating asset files. lajax\assetminifier\Component

Property Details

$combine public property

Enable combination of asset files.

$combiner public property

Object performing concatenation of asset files.

$createGz public property

Create corresponding .gz files for asset files.

$minifier public property

Object performing minification of asset files.

$minifyCss public property

Enable minification of StyleSheet files.

$minifyJs public property

Enable minification of JavaScript files.

Method Details

init() public method

void init( )
process() public method

Minifying and concatenating asset files.

void process( )