Class lajax\assetminifier\Component
Inheritance | lajax\assetminifier\Component » yii\base\Object |
---|---|
Available since version | 1.0 |
Component performing the minification and combination of asset files.
Minimal configs:
'bootstrap' => ['assetMinifier'],
'components' => [
'assetMinifier' => [
'class' => lajax\assetminifier\Component::className()
]
]
Public Properties
Property | Type | Description | Defined 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
Method | Description | Defined By |
---|---|---|
init() | lajax\assetminifier\Component | |
process() | Minifying and concatenating asset files. | lajax\assetminifier\Component |
Property Details
Enable combination of asset files.
Object performing concatenation of asset files.
Create corresponding .gz files for asset files.
Object performing minification of asset files.
Enable minification of StyleSheet files.
Enable minification of JavaScript files.