Google Closure禁止显示特定文件的警告消息 [英] Google Closure suppress warning messages for a particular file
问题描述
我正在使用Google Closure编译器将所有JavaScript压缩为单个文件.
I am using google closure compiler to compress all the javascript into single file.
虽然合规性会发出很多警告消息.以我为例,我已经压缩了第三方JS文件,这导致完整的文件被打印到浏览器中(我看到浏览器中的构建进度),并且出现一个错误.由于许可证问题,我无法修改第三方js.
While compliance it give lot of warning messages.In my case I have already compressed third party JS files, Which causes complete file to be printed on browser (i saw build progress in browser) for a single error. I cannot modify third party js due to licenses issue.
我在浏览器窗口中收到大量带有完整代码的警告消息,这导致浏览器被挂起.
I am getting tons of warning messages with complete code in browser window, which causes browser to be hanged.
如何禁止显示特定文件的所有警告.
How can I suppressed all the warnings for particular file.
推荐答案
使用-hide_warnings_for = node_modules/somelibrary
标志.
这篇关于Google Closure禁止显示特定文件的警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!