wikimedia/minify
Minification of JavaScript code and CSS stylesheets
|
A stateful minifier for JavaScript without source map support. More...
Protected Member Functions | |
minify (string $source) | |
Additional Inherited Members | |
Public Member Functions inherited from Wikimedia\Minify\MinifierState | |
outputFile (string $file) | |
Set the name of the output file, to be given as the "file" key. | |
sourceRoot (string $url) | |
Set the source root. | |
addSourceFile (string $url, string $source, bool $bundle=false) | |
Minify a source file and collect the output and mappings data. | |
setErrorHandler ( $onError) | |
Register an error callback. | |
addOutput (string $output) | |
Add a string to the output without any minification or source mapping. | |
ensureNewline () | |
Add a line break to the output if the output is non-empty and does not end in a line break. | |
getMinifiedOutput () | |
Get the minified output. | |
Protected Attributes inherited from Wikimedia\Minify\MinifierState | |
$sources = [] | |
$sourcesContent = [] | |
$minifiedOutput = '' | |
$outputFile | |
$sourceRoot | |
$onError | |
A stateful minifier for JavaScript without source map support.
Use the factory JavaScriptMinifier::createMinifier()
|
protected |