项目作者: ogheo

项目描述 :
Compress HTML output into a single line
高级语言: PHP
项目地址: git://github.com/ogheo/yii2-htmlcompress.git
创建时间: 2015-10-13T07:01:11Z
项目社区:https://github.com/ogheo/yii2-htmlcompress

开源协议:MIT License

下载


yii2-htmlcompress Software License Scrutinizer

Compress HTML output into a single line

Install

The preferred way to install this extension is through composer.

try

  1. composer require "ogheo/yii2-htmlcompress:*"

or add

  1. "ogheo/yii2-htmlcompress": "*"

to the require section of your composer.json file.

Configure

  1. return [
  2. // ...
  3. 'components' => [
  4. // ...
  5. 'view' => [
  6. 'class' => '\ogheo\htmlcompress\View',
  7. 'compress' => YII_ENV_DEV ? false : true,
  8. // ...
  9. ]
  10. ]
  11. ];

By default extension is disabled on DEV environment and enabled on PROD.

Enjoy ;)