css / csso

CSS minifier with structural optimizations
https://css.github.io/csso/csso.html
MIT License
3.74k stars 189 forks source link

Minify `@media all` #434

Open strarsis opened 3 years ago

strarsis commented 3 years ago

Would it make sense to clean up all occurrences of enclosing @media all media queries as this is the default for CSS, hence it being redundant? Edit: A scope variable/scoping context would be helpful as here as the optimizer then knows for what the styles are used, e.g. for printing, all @media print occurrences would be cleaned up instead.