A PostProcessor designed to minify javascript utilizing the Google Closure javascript compiler Under the hood this leverages Rhino AST Trees to process the file (but not the Rhino runtime) which makes this significantly faster than the UglifyJs or UglifyJs2 library.
Type | Name and description |
---|---|
AssetCompiler |
assetCompiler |
static def |
contentTypes |
Constructor and description |
---|
ClosureCompilerProcessor
(AssetCompiler compiler) |
Type | Name and description |
---|---|
String |
process(String fileName, String inputText, Map minifyOptions = [:]) |
void |
translateMinifyOptions(CompilerOptions compilerOptions, Map minifyOptions) |
Groovy Documentation