console\controllers\AssetController $jsCompressor

$jsCompressor public property

JavaScript file compressor. If a string, it is treated as shell command template, which should contain placeholders {from} - source file name - and {to} - output file name. Otherwise, it is treated as PHP callback, which should perform the compression.

Default value relies on usage of "Closure Compiler"

See also https://developers.google.com/closure/compiler/.

public string|callable $jsCompressor = 'java -jar compiler.jar --js {from} --js_output_file {to}'
doc_Yii
2016-10-30 16:54:50
Comments
Leave a Comment

Please login to continue.