Skip License/Credit Comments when minifying JavaScript using YUIcompressor

◇◆丶佛笑我妖孽 提交于 2019-12-23 07:46:51

问题


Is there a way to keep license/credit comments when the JavaScript is being minified by YUICompressor? Is there any special commenting characters? Or any flag for that in YUICompressor?

Thanks, Grace


回答1:


Yes, use

/*!
 *
 */

The exclamation tells the compressor to retain the comment.

Documentation



来源:https://stackoverflow.com/questions/6614532/skip-license-credit-comments-when-minifying-javascript-using-yuicompressor

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