File modules/cms/generator/filter/JavascriptMinifierFilter.class.php
Last commit: Fri Sep 18 23:04:13 2020 +0200 Jan Dankert Refactoring: Renaming module "cms/publish" to "cms/generator"
1 <?php 2 3 4 namespace cms\generator\filter; 5 6 7 use util\JSqueeze; 8 9 class JavascriptMinifierFilter extends AbstractFilter 10 { 11 public $singleLine = true; 12 public $keepImportantComments = true; 13 public $specialVarRx = false; 14 15 public function filter( $value ) 16 { 17 $jz = new JSqueeze(); 18 return $jz->squeeze( $value, (bool)$this->singleLine, (bool)$this->keepImportantComments, (bool)$this->specialVarRx ); 19 } 20 }
Downloadmodules/cms/generator/filter/JavascriptMinifierFilter.class.php
History Fri, 18 Sep 2020 23:04:13 +0200 Jan Dankert Refactoring: Renaming module "cms/publish" to "cms/generator"