A JavaScript library for minifying CSS, SCSS, LESS, and Stylus files. Current version 0.0.6 (infrequent releases). Key differentiator: supports multiple preprocessors (SCSS, LESS, Stylus) and includes built-in file and directory watching. Browser support is limited (minify only). Requires optional peer dependencies (node-sass, less) for non-CSS languages. Heavily uses ESM imports.
npm install style.min.cssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates ESM import and basic CSS minification with options for comments and zero unit removal.
Use 'removeZeroUnits' option instead of 'removeUselessUnits'.
Update to v0.0.2 or later for Node.js v10 compatibility.
Preprocess non-CSS languages before browser minification.
Ensure node-sass and less are installed separately if needed; consider using sass instead of node-sass for better compatibility (not supported by this library).
Ensure package is installed: npm install style.min.css. Use import syntax with Node >=12 or a bundler.
Install node-sass: npm install node-sass
Install less: npm install less