You are here

protected function Minifier::minifyDirectToOutput in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()
  2. 8.3 advagg_js_minify/jshrink.inc \JShrink\Minifier::minifyDirectToOutput()
  3. 7.2 advagg_js_compress/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_minify/jshrink.inc, line 183

Class

Minifier
Minifier

Namespace

JShrink

Code

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