You are here

public static function JSMin::minify in Javascript Aggregator 6

Same name and namespace in other branches
  1. 5 jsmin.php \JSMin::minify()
1 call to JSMin::minify()
_javascript_aggregator_minify in ./javascript_aggregator.module
Helper function to minify and gzip files.

File

./jsmin.php, line 62

Class

JSMin
jsmin.php - PHP implementation of Douglas Crockford's JSMin.

Code

public static function minify($js) {
  $jsmin = new JSMin($js);
  return $jsmin
    ->min();
}