public static class JsExtension.JsCompressor extends Object implements SxCompressor
JsExtension.getCompressor()
. Currently implemented using Closure
Compiler.Constructor and Description |
---|
JsCompressor() |
Modifier and Type | Method and Description |
---|---|
String |
compress(String source)
Compresses the given script, making it smaller and less readable, but with the same behavior.
|
String |
getSourceMap() |
public String compress(String source)
SxCompressor
compress
in interface SxCompressor
source
- The uncompressed scriptpublic String getSourceMap()
Copyright © 2004–2021 XWiki. All rights reserved.