umer936 / cakephp-asset-compress-yuicompressor
There is no license information available for the latest version (4.0.3) of this package.
See docs for YUI Compressor. This plugin installs YUI Compressor to the proper location for use with markstory/asset_compress CakePHP plugin.
Package info
github.com/umer936/cakephp-yuicompressor
Type:cakephp-plugin
pkg:composer/umer936/cakephp-asset-compress-yuicompressor
4.0.3
2022-09-23 19:30 UTC
Requires
- cakephp/cakephp: ^4.0
- nervo/yuicompressor: @stable
README
https://github.com/nervo/yuicompressor but puts it in the right place for https://github.com/markstory/asset_compress for CakePHP 4
Installation
Add to composer.json
{
...
"require-dev": {
...
"umer936/cakephp-asset-compress-yuicompressor": "@stable"
},
...
"scripts": {
...
"post-install-cmd": [
...
"@install-yuicompressor"
],
"post-update-cmd": "@install-yuicompressor",
...
"install-yuicompressor": "CakephpAssetCompressYuicompressor\\Console\\Installer::postUpdate",
...
},
...
}
This makes it so it installs both on composer install and composer update.
TODO:
- In the future, this should check if the file exists and copy the file only if it does not. There's no need to overwrite the yui file if it already exists.