csso icon indicating copy to clipboard operation
csso copied to clipboard

[bug] minifies removes @media tags

Open cocoliliace opened this issue 2 years ago • 5 comments

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: image

cocoliliace avatar Jan 13 '23 23:01 cocoliliace

Does CSSO support range syntax?

monochromer avatar Apr 12 '23 09:04 monochromer

Confirm. There is a problem, I have just encountered it.

wolfcreative avatar Jul 07 '23 11:07 wolfcreative

Yep, just ran into this one as well. Would be nice if range syntax would be supported.

ppfeufer avatar Aug 24 '23 21:08 ppfeufer

+1

stepanjakl avatar May 09 '24 19:05 stepanjakl