umer936/cakephp-asset-compress-yuicompressor

此包最新版本(4.0.3)没有可用的许可证信息。

请参阅YUI Compressor文档。此插件将YUI Compressor安装到与markstory/asset_compress CakePHP插件配合使用的正确位置。

安装: 35

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 4

类型:cakephp-plugin

4.0.3 2022-09-23 19:30 UTC

This package is auto-updated.

Last update: 2024-09-24 00:01:28 UTC


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文件已存在,则无需覆盖。