smilemd/yii2-htmlcompress
最新稳定版本:1.1.0
Composer 安装命令:
composer require smilemd/yii2-htmlcompress
包简介
Compress HTML output into a single line
README 文档
README
Compress HTML output into a single line
Install
The preferred way to install this extension is through composer.
try
composer require "ogheo/yii2-htmlcompress:*"
or add
"ogheo/yii2-htmlcompress": "*"
to the require section of your composer.json file.
Configure
return [
// ...
'components' => [
// ...
'view' => [
'class' => '\ogheo\htmlcompress\View',
'compress' => YII_ENV_DEV ? false : true,
// ...
]
]
];
By default extension is disabled on DEV environment and enabled on PROD.
Enjoy ;)
统计信息
- 总下载量: 10.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-13