PHP Class MiniAsset\Filter\JShrinkFilter

Allows you to minify Javascript files through JShrink. JShrink can be downloaded at https://github.com/tedivm/JShrink. You need to put Minifier.php in your vendors jshrink folder.
Inheritance: extends MiniAsset\Filter\AssetFilter
Datei anzeigen Open project: markstory/mini-asset

Protected Properties

Property Type Description
$_settings array Settings for JShrink minifier.

Public Methods

Method Description
output ( string $filename, string $content ) : string Apply JShrink to $content.

Method Details

output() public method

Apply JShrink to $content.
public output ( string $filename, string $content ) : string
$filename string target filename
$content string Content to filter.
return string

Property Details

$_settings protected_oe property

Settings for JShrink minifier.
protected array $_settings
return array