GuillaumeGomez / minifier-rs

Minifier tool/lib for JS/CSS/JSON files
MIT License
86 stars 16 forks source link

preserve whitespace after the 'and' keyword #50

Closed indy closed 4 years ago

indy commented 4 years ago

There needs to be a space after the 'and' clause in a media query, otherwise browsers ignore the rule.

e.g. the html at https://gist.github.com/indy/c8bfac88b3be79a1fb7c48d41d280542 always renders with a yellow background regardless of screen width, only by inserting a space after the 'and' does it behave correctly.

GuillaumeGomez commented 4 years ago

Good catch, thanks! Just waiting for CI then I merge.

GuillaumeGomez commented 4 years ago

Making a new release in the next hours.