csso icon indicating copy to clipboard operation
csso copied to clipboard

Minify colours in CSS variables

Open TomStrepsil opened this issue 4 years ago • 0 comments

Although this (from docs) works:

csso.minify('.test { color: #ff0000; }').css
// .test{color:red}

...the same doesn't appear to apply to css custom properties:

css.minify(':root { --test: #FF0000; }').css
// expected: :root{--test:red}
// received: :root{--test:#FF0000}

TomStrepsil avatar Oct 06 '21 11:10 TomStrepsil