2017 © Pedro Peláez
 

yii2-extension yii2-minify-view

Yii2 View component with minification css & js

image

appmake/yii2-minify-view

Yii2 View component with minification css & js

  • Thursday, July 9, 2015
  • by appmake
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Yii 2 Minify View Component

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require --prefer-dist appmake/yii2-minify-view "*"

or add, (*3)

"appmake/yii2-minify-view": "*"

Configure

<?
return [
    // ...
    'components' => [
        // ...
        'view' => [
            'class' => '\rmrevin\yii\minify\View',
            'enableMinify' => !YII_DEBUG,
            'web_path' => '@web', // path alias to web base
            'base_path' => '@webroot', // path alias to web base
            'minify_path' => '@webroot/minify', // path alias to save minify result
            'js_position' => [ \yii\web\View::POS_END ], // positions of js files to be minified
            'force_charset' => 'UTF-8', // charset forcibly assign, otherwise will use all of the files found charset
            'expand_imports' => true, // whether to change @import on content
            'compress_output' => true, // compress result html page
        ]
    ]
];

The Versions

09/07 2015

dev-master

9999999-dev

Yii2 View component with minification css & js

  Sources   Download

MIT

The Requires

 

by Safronov Sergey

css yii2 js view minify