2017 © Pedro Peláez
 

yii2-extension yii2-minify-view

Yii2 View component with minification html & css & js

image

mirocow/yii2-minify-view

Yii2 View component with minification html & css & js

  • Friday, November 13, 2015
  • by Mirocow
  • Repository
  • 3 Watchers
  • 8 Stars
  • 798 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 68 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Yii 2 Minify View Component

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

Installation

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

Add github repository

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/mirocow/yii2-minify-view.git"
        }
    ]

and then, (*3)

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

or add, (*4)

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

to the require section of your application's composer.json file., (*5)

Configure

<?
return [
    // ...
    'components' => [
        // ...
    'view' => [
      'class' => '\mirocow\minify\View',
      'base_path' => '@app/web', // path alias to web base
      'minify_path' => '@app/web/minify', // path alias to save minify result
      'minify_css' => true,
      'minify_js' => true,
      'minify_html' => true,
      'js_len_to_minify' => 1000, // Больше этого размера inlinejs будет сжиматься и упаковываться в файл
      '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
      //'css_linebreak_pos' => false,

      // Theming
      'theme' => [
        'basePath' => '@app/themes/myapp',
        'baseUrl' => '@app/themes/myapp',
        'pathMap' => [ 
          '@app/modules' => '@app/themes/myapp/modules',
          /*'@app/views' => [ 
            '@webroot/themes/myapp/views',
          ]*/
        ],
      ],          

    ],
    ]
];

The Versions

13/11 2015

dev-master

9999999-dev

Yii2 View component with minification html & css & js

  Sources   Download

BSD-3-Clause

The Requires

 

css yii2 html js view minify

28/07 2014

1.2.1

1.2.1.0

Yii2 view componen with minification css & js

  Sources   Download

BSD-3-Clause

The Requires

 

css yii2 js view minify

28/07 2014

1.2.0

1.2.0.0

Yii2 view componen with minification css & js

  Sources   Download

BSD-3-Clause

The Requires

 

css yii2 js view minify

16/05 2014

1.1.0

1.1.0.0

Yii2 view componen with minification css & js

  Sources   Download

BSD-3-Clause

The Requires

 

css yii2 js view minify

16/05 2014

1.0.0

1.0.0.0

Yii2 asset bundle for https://github.com/jboesch/Gritter/

  Sources   Download

BSD-3-Clause

The Requires

 

css yii2 js view minify