Google Closure suppress warning messages for a particular file

亡梦爱人 提交于 2021-01-28 03:04:04

问题


I am using google closure compiler to compress all the javascript into single file.

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.


回答1:


Use the --hide_warnings_for=node_modules/somelibrary flag.



来源:https://stackoverflow.com/questions/47668995/google-closure-suppress-warning-messages-for-a-particular-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!