google 闭包编译器 appspot 使用什么参数?

What parameters does google closure compiler appspot use?

我正在使用 google 的闭包编译器来最小化我的 js 文件。当我使用网站版本here with the advanced options it works just fine, but when I downloaded their Java application, from here时,设置标志是这样的:

java -jar compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS --js /code/built.js --js_output_file compiledCode.js

然后我的程序的某些功能停止工作。我猜它与优化算法不兼容。所以我的问题是,我应该使用什么标志来复制 appspot 版本上使用的优化?

谢谢

Web 服务默认不启用 type-based 优化。所以要获得等效的功能:

java -jar compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS
    --use_types_for_optimization=false
    --js /code/built.js --js_output_file compiledCode.js

Web 服务还假定任何未定义的符号都是外部库。因此,不建议将其用于生产。