Cerdic/CSSTidy

CSS variables is not supported

arthur791004 opened this issue · 2 comments

Hi there

I use CSS variables in my code and it shows the following log.

{"2":[{"m":"Removed invalid property: --color","t":"Warning"}]}

Is there any way to support CSS variables except turning off discard_invalid_properties? Thanks!

Example

Before

:root {
  --color: red;
}

After

:root {}

Should be fixed with the v2.0.1

Thanks for your quick update 👍