Closed zytzagoo closed 6 years ago
Thank you for reporting the issue extensively. I will review this for sure :)
Umm yes this is a valid issue. A semicolon is a reserved character in an URI and CSSmin should support it in import at rules. I'll fix this.
Fixed in v4.1.1
Here's a testcase that fails with current master:
Expected output:
Actual output:
Diff highlight:
When urls are quoted, the problem doesn't occur (because
processStringsCallback()
captures and later restores the url "tokens"). However, I cannot control the inputs being given toMinifier
.Do you have any pointers on how to best approach fixing this? Is this something you think needs fixing at all?
I have a branch ready for a PR over at my fork (with the test suite passing), as this is currently a showstopper for getting the latest version integrated into Autoptimize, however, there's probably a better/smarter way to go about fixing this -- I just needed to get something that works quickly...