开发者

Skip License/Credit Comments when minifying JavaScript using YUIcompressor

开发者 https://www.devze.com 2023-03-18 14:15 出处:网络
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 YUICo

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

精彩评论

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