public static function JSMinPlus::minify in Advanced CSS/JS Aggregation 7.2
Same name and namespace in other branches
- 8.4 advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 6 advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
- 7 advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
1 call to JSMinPlus::minify()
- advagg_js_compress_jsminplus in advagg_js_compress/
advagg_js_compress.advagg.inc - Compress a JS string using jsmin+.
File
- advagg_js_compress/
jsminplus.inc, line 266 - JSMinPlus version 1.4
Class
Code
public static function minify($js, $filename = '') {
static $instance;
// this is a singleton
if (!$instance) {
$instance = new JSMinPlus();
}
return $instance
->min($js, $filename);
}