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
Afficher le fichier Open project: markstory/mini-asset

Protected Properties

Свойство Type Description
$_settings array Settings for JShrink minifier.

Méthodes publiques

Méthode Description
output ( string $filename, string $content ) : string Apply JShrink to $content.

Method Details

output() public méthode

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

Property Details

$_settings protected_oe property

Settings for JShrink minifier.
protected array $_settings
Résultat array