juanchosl/assetminifyer
最新稳定版本:1.0.1
Composer 安装命令:
composer require juanchosl/assetminifyer
包简介
Simple library in order to minify js and css files used as assets into web projects
关键字:
README 文档
README
Description
Simple library in order to minify js and css files used as assets into web projects
How to use
Directly to driver
use JuanchoSL\AssetMinifyer\Drivers\JSMin; $minifyed_content = JSMin::minify($js_code);
or
use JuanchoSL\AssetMinifyer\Drivers\CSSMin; $minifyed_content = CSSMin::minify($css_code);
Use Adapter for contents
use JuanchoSL\AssetMinifyer\Adapters\Minifyer; $minifyer = new Minifyer(); $js_minifyed = $minifyer->cleanJs($js_code); $css_minifyed = $minifyer->cleanCss($css_code);
Use Adapter for some files
The files contents will minifyed and concatenated. Do not use for distinct file types.
use JuanchoSL\AssetMinifyer\Adapters\Minifyer; $minifyer = new Minifyer(); $minifyer->addFiles([$asset_fullpath_1, $asset_fullpath_2]); $asset_minifyed = $minifyer->getContent();
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-02