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
精彩评论