最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Skip LicenseCredit Comments when minifying JavaScript using YUIcompressor - Stack Overflow

programmeradmin1浏览0评论

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

Thanks, Grace

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

Thanks, Grace

Share Improve this question edited Jul 7, 2011 at 18:58 Grace Huang asked Jul 7, 2011 at 17:20 Grace HuangGrace Huang 5,7095 gold badges33 silver badges55 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 20

Yes, use

/*!
 *
 */

The exclamation tells the pressor to retain the ment.

Documentation

发布评论

评论列表(0)

  1. 暂无评论