use of com.google.javascript.jscomp.Compiler in project AngularBeans by bessemHmidi.
the class ClosureCompiler method compile.
public String compile(String code) {
Compiler compiler = new Compiler();
compiler.disableThreads();
SourceFile extern = SourceFile.fromCode("externs.js", "function alert(x) {}");
SourceFile input = SourceFile.fromCode("input.js", code);
compiler.compile(extern, input, options);
return compiler.toSource();
}
Aggregations