You are here

public static function JSMinPlus::minify in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
  2. 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
  3. 6 advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
  4. 7.2 advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
  5. 7 advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
1 call to JSMinPlus::minify()
JsMinifier::minifyJsminplus in advagg_js_minify/src/Asset/JsMinifier.php
Minify a JS string using jsmin+.

File

advagg_js_minify/jsminplus.inc, line 266
JSMinPlus version 1.4

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);
}