[英]closure-compiler wouldn't switch off suspicious code warning
I use the closure compiler to compile different js files into one short file. 我使用闭包编译器将不同的js文件编译为一个短文件。 Admittedly this is not very effective for an already compiled file but never the less it should work.
诚然,这对于已经编译的文件不是很有效,但是它永远都不会起作用。 I got the command line options from the wiki page but it still shows me the warnings.
我从维基页面获得了命令行选项,但它仍然显示警告。 Anyone got any idea what I might probably have done wrong?
任何人都知道我可能做错了什么?
java -jar googleClosureCompiler.jar --jscomp_off=suspiciousCode --js "bootstrap.min.js"
So I finally found out that the warning "Suspicious Code" could be silenced with the option 因此,我最终发现,该选项可以使警告“可疑代码”消失
--jscomp_off=uselessCode
Dam well played google! 大坝玩得好谷歌!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.