简体   繁体   中英

Skip License/Credit Comments when minifying JavaScript using YUIcompressor

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

Yes, use

/*!
 *
 */

The exclamation tells the compressor to retain the comment.

Documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM