Commit abe4455d401d395145609ccdc87e0641f1a6698f
1 parent
25a232f5
html compress
Showing
1 changed file
with
15 additions
and
7 deletions
Show diff stats
frontend/config/main.php
@@ -353,13 +353,21 @@ | @@ -353,13 +353,21 @@ | ||
353 | //Enable compression html | 353 | //Enable compression html |
354 | 'noIncludeJsFilesOnPjax' => true, | 354 | 'noIncludeJsFilesOnPjax' => true, |
355 | //Do not connect the js files when all pjax requests | 355 | //Do not connect the js files when all pjax requests |
356 | - 'htmlCompressOptions' => //options for compressing output result | ||
357 | - [ | ||
358 | - 'extra' => false, | ||
359 | - //use more compact algorithm | ||
360 | - 'no-comments' => true | ||
361 | - //cut all the html comments | ||
362 | - ], | 356 | + 'htmlFormatter' => [ |
357 | + //Enable compression html | ||
358 | + 'class' => 'skeeks\yii2\assetsAuto\formatters\html\TylerHtmlCompressor', | ||
359 | + 'extra' => false, //use more compact algorithm | ||
360 | + 'noComments' => true, //cut all the html comments | ||
361 | + 'maxNumberRows' => 50000, //The maximum number of rows that the formatter runs on | ||
362 | + | ||
363 | + //or | ||
364 | + | ||
365 | + // 'class' => 'skeeks\yii2\assetsAuto\formatters\html\MrclayHtmlCompressor', | ||
366 | + | ||
367 | + //or any other your handler implements skeeks\yii2\assetsAuto\IFormatter interface | ||
368 | + | ||
369 | + //or false | ||
370 | + ], | ||
363 | ], | 371 | ], |
364 | ], | 372 | ], |
365 | 373 |