开发者

How to preserve comments with YUI compressor

开发者 https://www.devze.com 2022-12-14 12:07 出处:网络
I\'m using the YUI compressor to merge and minify my JS-files. One problem I\'m having is that comments are being deleted, even though I\'m using the suggested format as follows:

I'm using the YUI compressor to merge and minify my JS-files. One problem I'm having is that comments are being deleted, even though I'm using the suggested format as follows:

/*!

comments go here
开发者_如何学运维
*/

That's what they say in the documentation and on several blogs:

http://www.julienlecomte.net/yuicompressor/README

http://www.electrictoolbox.com/preserve-comments-yui-compressor/

Any ideas on what can be wrong?


I re-ran YUI compressor and now all comments are in place. Probably my own fault...

0

精彩评论

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