class JsOptimizer implements AssetOptimizerInterface (View source)

Optimizes a JavaScript asset.

Methods

string
optimize(array $js_asset)

Optimizes an asset.

string
clean(string $contents)

Processes the contents of a javascript asset for cleanup.

Details

string optimize(array $js_asset)

Optimizes an asset.

Parameters

array $js_asset

Return Value

string

The optimized asset's contents.

string clean(string $contents)

Processes the contents of a javascript asset for cleanup.

Parameters

string $contents

The contents of the javascript asset.

Return Value

string

The cleaned asset's contents.