csso
csso copied to clipboard
[bug] minifies removes @media tags
Version 5.0.5. Code to reproduce
const { minify } from require("csso");
const style = `
body {
color: red;
}
@media (width < 720px) {
body {
color: blue;
}
}`;
console.log(minify(style));
// prints { css: 'body{color:red}', map: null }
Screenshot:

Does CSSO support range syntax?
Confirm. There is a problem, I have just encountered it.
Yep, just ran into this one as well. Would be nice if range syntax would be supported.
+1