css‑parser is a fast, fault‑tolerant and dependency‑free CSS toolkit for Node.js & browsers. It follows CSS Syntax Module Level 3 and validation using syntax rules from MDN Data. According to this benchmark, it is one of the most efficient CSS minifier available.
See the full documentation at the CSS Parser documentation site
Try it online