tdewolff / minify

Go minifiers for web formats
https://go.tacodewolff.nl/minify
MIT License
3.72k stars 219 forks source link

css: Whitespace between values isn't collapsed #740

Open thatguystone opened 1 month ago

thatguystone commented 1 month ago

The following css isn't minified properly:

:root { --v: 1px   2px }
:root { --v: a,   b,   c; }
:root { --v: a,
        b,
        c;
}

Got:

:root{--v:1px   2px}:root{--v:a,   b,   c}:root{--v:a,
        b,
        c}

Expected:

:root{--v:1px 2px}:root{--v:a,b,c}:root{--v:a,b,c}

Playground link