问题
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