defyma/yii2-compress-asset
最新稳定版本:v1.0.2
Composer 安装命令:
composer require defyma/yii2-compress-asset
包简介
This solution enables you to dynamically combine js and css files to optimize the html page.
README 文档
README
This solution enables you to dynamically combine js and css files to optimize the html page.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist defyma/yii2-compress-asset "*"
or add
"defyma/yii2-compress-asset": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
//App config [ 'bootstrap' => ['assetsAutoCompress'], 'components' => [ //.... 'assetsAutoCompress' => [ 'class' => '\defyma\assets\AssetsCompressComponent', 'enabled' => true, 'jsCompress' => true, 'cssFileCompile' => true, 'jsFileCompile' => true, ], //.... ] ]
统计信息
- 总下载量: 216
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-12-17