开发者

How to preserve comments with YUI compressor

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜