Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to minify Assets in yii2 in basic template?

Tags:

yii2

yii2-user

I am using yii2 basic template. How can I minify the Asset Bundle of my page? I found some documentation regarding minification on http://www.yiiframework.com/doc-2.0/guide-structure-assets.html but was not able to do so.

like image 781
abhi Avatar asked Feb 04 '15 07:02

abhi


Video Answer


1 Answers

You can do it either as described in official guide using Yii assets management or by using external asset manager such as Grunt or Gulp.

You can read about how to configure Grunt here: https://github.com/samdark/yii2-cookbook/blob/master/book/structure-asset-processing-with-grunt.md

like image 85
Sam Dark Avatar answered Oct 06 '22 13:10

Sam Dark