credy / yii2-assetconverter
Yii2 assetconverter and minifier written in PHP
1.0.0
2022-10-05 10:59 UTC
Requires
- matthiasmullie/minify: ^1.3
- scssphp/scssphp: ^1.11
- yiisoft/yii2: ^2.0
Requires (Dev)
- codeception/codeception: ^4.2
- codeception/module-asserts: ^1.0
- credy/tc-coding-standard: dev-master
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.2
This package is auto-updated.
Last update: 2024-11-05 15:26:47 UTC
README
Installation:
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist credy/yii2-assetconverter "^1.0"
or add
"credy/yii2-assetconverter": "^1.0"
to the require section of your composer.json.
Configuration:
AssetController:
put following snippet into your application config
[
'controllerMap' => [
'assets' => [
'class' => credy\assetconverter\controllers\AssetController::class
],
],
]
Usage:
You can use it exactly as Yii2 AssetController
AssetConverters:
Put following snippet into your application config
[
'components' => [
'assetManager' => [
'converter' => [
'class' => credy\assetconverter\assetconverters\ChooserAssetConverter::class
]
]
],
];