Same name in other branches
  1. 5.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()
  2. 6.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()
  3. 8.x-2.x advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()
  4. 8.x-3.x advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()
  5. 8.x-4.x advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()

Processes a javascript string and outputs only the required characters, stripping out all unneeded characters.

Parameters

string $js The raw javascript to be minified:

array $options Various runtime options in an associative array:

File

advagg_js_compress/jshrink.inc, line 186

Class

Minifier
Minifier

Namespace

JShrink

Code

protected function minifyDirectToOutput($js, $options) {
    $this->initialize($js, $options);
    $this->loop();
    $this->clean();
}