Google的Closure编译器,使输出文件在一行中
是否有一个选项可以将 Closure 编译器的输出文件变成一行?
它在某个时刻包装代码,插入新行,但我没有找到更改此行为的选项。
谢谢
Is there an option for making the output file of the Closure compiler into one single line?
It is wrapping the code at some point, inserting a new line, and I didn't find an option to change this behavior.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
答案似乎是否定的,它无法被禁用。这是一个特点。
The answer seems to be NO, it cannot be disabled. It is a feature.
您可以使用 Java API 进行设置,0 用于表示不中断:
http://www.google.com/codesearch#l5BkQmivP-Y/trunk/src/com/google/javascript/jscomp/CompilerOptions.java&q=lineLengthThreshold%20package:http://closure-编译器%5C.googlecode%5C.com&type=cs&l=1797
You can set this using the Java API, 0 is used to indicate no break:
http://www.google.com/codesearch#l5BkQmivP-Y/trunk/src/com/google/javascript/jscomp/CompilerOptions.java&q=lineLengthThreshold%20package:http://closure-compiler%5C.googlecode%5C.com&type=cs&l=1797