| Page 1 of 1 | [ 3 posts ] |
|
When compressing a CSS file I am getting an error in the resulting minified file. The minified file contains the string *___YUICSSMIN_PRESERVE_CANDIDATE_COMMENT_521___*/
I have put a copy of the original file and the minified version on a server so you can see. original: http://media.news.com.au/fe/tmp/yuicomp ... n-news.css minified: (minified online at http://www.refresh-sf.com/yui/ which uses YUI Compressor 2.4.7) http://media.news.com.au/fe/tmp/yuicomp ... nifier.css Is there a fix for this error with YUI Compressor? |
|
Hi,
The cause of your issue is you're using the * selector hack for IE right after a comment: Code: /*comment*/*width:auto; YUI gets troubled with that, it's an issue for sure! Until YUI fixes it (can take months or years) I suggest you add a space after any comment: Code: /*comment*/ *width:auto; Or you can use my PHP port of the YUI compressor which fixes your issue. My port is well tested and it's being recently adopted by Minify, a popular framework for minifying resources. Cheers, |
|
The workaround will work fine for our needs. Thanks for helping out with the annoying issue!
Tim |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group