Google Closure禁止显示特定文件的警告消息 [英] Google Closure suppress warning messages for a particular file

查看:79
本文介绍了Google Closure禁止显示特定文件的警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆