Свойство | Тип | Описание | |
---|---|---|---|
$dst | string | ||
$squeezeOptions | array | ||
$text | string | ||
$type | string | ||
$types | array |
Метод | Описание | |
---|---|---|
__construct ( string $input ) | Constructor. Accepts asset file path or string source. | |
__toString ( ) : string | ||
keepImportantComments ( boolean $keepImportantComments ) | keepImportantComments option for the JS minimisation. | |
run ( ) | ||
singleLine ( boolean $singleLine ) | Single line option for the JS minimisation. | |
specialVarRx ( boolean $specialVarRx ) | specialVarRx option for the JS minimisation. | |
to ( string $dst ) | Sets destination. Tries to guess type from it. | |
type ( string $type ) | Sets type with validation. |
Метод | Описание | |
---|---|---|
fromFile ( string $path ) | Sets text from asset file path. Tries to guess type and set default destination. | |
fromText ( string $text ) | Sets text from string source. | |
getExtension ( string $path ) : string | Gets file extension from path. | |
getMinifiedText ( ) : string | boolean | Minifies and returns text. |
public __construct ( string $input ) | ||
$input | string |
protected getExtension ( string $path ) : string | ||
$path | string | |
Результат | string |
protected getMinifiedText ( ) : string | boolean | ||
Результат | string | boolean |
public keepImportantComments ( boolean $keepImportantComments ) | ||
$keepImportantComments | boolean |
public singleLine ( boolean $singleLine ) | ||
$singleLine | boolean |
public specialVarRx ( boolean $specialVarRx ) | ||
$specialVarRx | boolean |