Open mcombuechen opened 10 years ago
I agree. Thanks for filing this.
Hi, Is there any news for a fix? Thanks
This is a pretty serious defect. We can't currently us the yuicompressor because of this. The fact that it's been open for 1.5 years and 2.4.9 with which it's supposed to be released is only about 30% completed poses a pretty bleak outlook :disappointed:.
It's a project that went from having Yahoo! behind it to...a project having ME behind it. Pull requests are welcome!
Oh, I missed that, sorry. I just read their fall 2014 announcement and it sounds like a reasonable move - from Yahoo's perspective. For years the YUI Compressor was the first thing that came to mind when I thought about or heard of JS/CSS minification. Everybody loves PRs, I know (I do for my own projects). I'm not versed enough in JavaScript to help at the moment, sorry. Did you think about reducing the scope of your releases to ship bug fixes earlier?
I have raised a PR for to fix this: https://github.com/yui/yuicompressor/pull/319 Could you please review it and merge it if you are happy with the fix?
@tml There is a fix above!
faced with this problem in 2021:(
still same problem in march 2022
Work around is to replace all spaces in your SVG URLs with %20
.
yuicompressor
is dead. Use esbuild
which is not dead and MUCH faster.
Good necro. My heart goes out to @syntaxseed and everyone else who still needs to find a workaround for this issue, but if you can: please try and invest some time in moving to newer tooling if there's any way you can.
I came across a situation where I wanted to save very small and simple SVG images inline in the CSS, e.g.
YUICompressor will strip all the whitespace from the XML and thus break it:
I’d argue that content within
url()
shouldn’t be minified.