public class TioJsCompressor extends Object implements ResCompressor
| Modifier and Type | Field and Description |
|---|---|
static TioJsCompressor |
me |
DOC| Constructor and Description |
|---|
TioJsCompressor() |
| Modifier and Type | Method and Description |
|---|---|
String |
compress(String srcFilePath,
String srcFileContent) |
static String |
compress(String srcFilePath,
String srcFileContent,
com.google.javascript.jscomp.CompilerOptions.LanguageMode languageMode,
com.google.javascript.jscomp.CompilationLevel compilationLevel) |
static void |
init() |
static void |
main(String[] args) |
public static final TioJsCompressor me
public static void init()
public String compress(String srcFilePath, String srcFileContent)
compress in interface ResCompressorsrcFileContent - 原内容public static String compress(String srcFilePath, String srcFileContent, com.google.javascript.jscomp.CompilerOptions.LanguageMode languageMode, com.google.javascript.jscomp.CompilationLevel compilationLevel)
srcFilePath - 源文件路径srcFileContent - 源文件内容public static void main(String[] args) throws IOException
args - IOExceptionCopyright © 2021. All rights reserved.