umer936 / cakephp-asset-compress-yuicompressor
此包最新版本(4.0.3)没有可用的许可证信息。
请参阅YUI Compressor文档。此插件将YUI Compressor安装到与markstory/asset_compress CakePHP插件配合使用的正确位置。
4.0.3
2022-09-23 19:30 UTC
Requires
- cakephp/cakephp: ^4.0
- nervo/yuicompressor: @stable
README
https://github.com/nervo/yuicompressor 但将其放置在https://github.com/markstory/asset_compress 的正确位置,以便与CakePHP 4配合使用
安装
添加到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", ... }, ... }
这使它在composer install和composer update时都进行安装。
待办事项
- 将来,此功能应检查文件是否存在,并且只有文件不存在时才复制文件。如果yui文件已存在,则无需覆盖。