Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] minifies removes @media tags #464

Open
cocoliliace opened this issue Jan 13, 2023 · 4 comments
Open

[bug] minifies removes @media tags #464

cocoliliace opened this issue Jan 13, 2023 · 4 comments

Comments

@cocoliliace
Copy link

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

@monochromer
Copy link

Does CSSO support range syntax?

@wolfcreative
Copy link

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

ppfeufer added a commit to ppfeufer/aa-intel-tool that referenced this issue Aug 24, 2023
@ppfeufer
Copy link

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

@stepanjakl
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants