You are here

public static function JSMinPlus::minify in Javascript Aggregator 6

1 call to JSMinPlus::minify()
_javascript_aggregator_minify in ./javascript_aggregator.module
Helper function to minify and gzip files.

File

./jsminplus.php, line 198

Class

JSMinPlus

Code

public static function minify($js, $filename = '') {
  static $instance;

  // this is a singleton
  if (!$instance) {
    $instance = new JSMinPlus();
  }
  return $instance
    ->min($js, $filename);
}