UglifyCssFilter
extends BaseNodeFilter
in package
UglifyCss filter.
Tags
Table of Contents
- $cuteComments : mixed
- $expandVars : mixed
- $nodeBin : mixed
- $nodePaths : mixed
- $timeout : mixed
- $uglifycssBin : mixed
- $uglyComments : mixed
- __construct() : mixed
- addNodePath() : mixed
- filterDump() : mixed
- Run the asset through UglifyJs
- filterLoad() : mixed
- getNodePaths() : mixed
- setCuteComments() : mixed
- Preserve newlines within and around preserved comments
- setExpandVars() : mixed
- Expand variables
- setNodePaths() : mixed
- setTimeout() : mixed
- Set the process timeout.
- setUglyComments() : mixed
- Remove newlines within preserved comments
- createProcessBuilder() : ProcessBuilder
- Creates a new process builder.
- mergeEnv() : mixed
Properties
$cuteComments
private
mixed
$cuteComments
$expandVars
private
mixed
$expandVars
$nodeBin
private
mixed
$nodeBin
$nodePaths
private
mixed
$nodePaths
= array()
$timeout
private
mixed
$timeout
$uglifycssBin
private
mixed
$uglifycssBin
$uglyComments
private
mixed
$uglyComments
Methods
__construct()
public
__construct([string $uglifycssBin = '/usr/bin/uglifycss' ][, string $nodeBin = null ]) : mixed
Parameters
- $uglifycssBin : string = '/usr/bin/uglifycss'
-
Absolute path to the uglifycss executable
- $nodeBin : string = null
-
Absolute path to the folder containg node.js executable
Return values
mixed —addNodePath()
public
addNodePath(mixed $nodePath) : mixed
Parameters
- $nodePath : mixed
Return values
mixed —filterDump()
Run the asset through UglifyJs
public
filterDump(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Tags
Return values
mixed —filterLoad()
public
filterLoad(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Tags
Return values
mixed —getNodePaths()
public
getNodePaths() : mixed
Return values
mixed —setCuteComments()
Preserve newlines within and around preserved comments
public
setCuteComments(bool $cuteComments) : mixed
Parameters
- $cuteComments : bool
-
True to enable
Return values
mixed —setExpandVars()
Expand variables
public
setExpandVars(bool $expandVars) : mixed
Parameters
- $expandVars : bool
-
True to enable
Return values
mixed —setNodePaths()
public
setNodePaths(array<string|int, mixed> $nodePaths) : mixed
Parameters
- $nodePaths : array<string|int, mixed>
Return values
mixed —setTimeout()
Set the process timeout.
public
setTimeout(int $timeout) : mixed
Parameters
- $timeout : int
-
The timeout for the process
Return values
mixed —setUglyComments()
Remove newlines within preserved comments
public
setUglyComments(bool $uglyComments) : mixed
Parameters
- $uglyComments : bool
-
True to enable
Return values
mixed —createProcessBuilder()
Creates a new process builder.
protected
createProcessBuilder([array<string|int, mixed> $arguments = array() ]) : ProcessBuilder
Parameters
- $arguments : array<string|int, mixed> = array()
-
An optional array of arguments
Return values
ProcessBuilder —A new process builder
mergeEnv()
protected
mergeEnv(ProcessBuilder $pb) : mixed
Parameters
- $pb : ProcessBuilder