开发者

Skip License/Credit Comments when minifying JavaScript using YUIcompressor

Is there a way to keep license/credit comments when the JavaS开发者_StackOverflow社区cript is being minified by YUICompressor? Is there any special commenting characters? Or any flag for that in YUICompressor?

Thanks, Grace


Yes, use

/*!
 *
 */

The exclamation tells the compressor to retain the comment.

Documentation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜