2017 © Pedro Peláez
 

yii2-extension yii2-minify-view

Yii2 View component to minify CSS, JS, and page HTML, and concatenate assets of the same type.

image

acerix/yii2-minify-view

Yii2 View component to minify CSS, JS, and page HTML, and concatenate assets of the same type.

  • Friday, December 29, 2017
  • by acerix
  • Repository
  • 0 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 67 Forks
  • 0 Open issues
  • 7 Versions
  • 109 % Grown

The README.md

Yii 2 Minify View Component

Concatenates AssetBundle files of the same type and minifies CSS, JavaScript, and page HTML., (*1)

License Latest Stable Version Latest Unstable Version Total Downloads, (*2)

Code Status

Scrutinizer Code Quality Code Coverage Travis CI Build Status, (*3)

Support

Issues on GitHub, (*4)

Installation

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

Either run, (*6)

composer require acerix/yii2-minify-view

or add, (*7)

"acerix/yii2-minify-view": "~2.0",

to the require section of your composer.json file., (*8)

Configure

<?php

return [
    // ...
        'components' => [
        // ...
        'view' => [
            'class' => '\acerix\yii\minify\View',
            'enableMinify' => !YII_DEBUG,
            'concatCss' => true,
            'minifyCss' => true,
            'concatJs' => true,
            'minifyJs' => true,
            'minifyOutput' => true, // minify html page
            'webPath' => '@web', // path alias to web base
            'basePath' => '@webroot', // path alias to web base
            'minifyPath' => '@webroot/minify', // path alias to save minify result
            'jsPosition' => [ \yii\web\View::POS_END ], // positions of js files to be minified
            'forceCharset' => 'UTF-8', // charset forcibly assign, otherwise will use all of the files found charset
            'expandImports' => true, // whether to change @import on content
            'compressOptions' => ['jsCleanComments' => false], // options for html compress
            'excludeFiles' => [
                'jquery.js', // exclude this file from minification
                'app-[^.].js', // regexp
            ],
            'excludeBundles' => [
                \app\helloworld\AssetBundle::class, // exclude this bundle from minification
            ],
        ]
    ]
];

Forked From

rmrevin/yii2-minify-view, (*9)

The Versions

29/12 2017

dev-master

9999999-dev

Yii2 View component to minify CSS, JS, and page HTML, and concatenate assets of the same type.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dylan Ferris

css yii2 html js view minify compress

29/12 2017

2.0.0

2.0.0.0

Yii2 View component to minify CSS, JS, and page HTML, and concatenate assets of the same type.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dylan Ferris

css yii2 html js view minify compress

05/12 2017

1.17

1.17.0.0

Yii2 View component to minify CSS, JS, and page HTML, and concatenate assets of the same type.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dylan Ferris

css yii2 html js view minify compress

17/11 2017

dev-patch-1

dev-patch-1

Yii2 View component with minification css & js

  Sources   Download

MIT

The Requires

 

css yii2 js view minify

17/11 2017

dev-patch-2

dev-patch-2

Yii2 View component with minification css & js

  Sources   Download

MIT

The Requires

 

css yii2 js view minify

16/11 2017

dev-phpunit-6-updates

dev-phpunit-6-updates

Yii2 View component with minification css & js

  Sources   Download

MIT

The Requires

 

css yii2 js view minify

19/01 2016

dev-matt

dev-matt

Yii2 View component with minification css & js

  Sources   Download

MIT

The Requires

 

css yii2 js view minify