A minimal CSS minifier for Node.js (v1.0.0). This package removes whitespace, comments, and unnecessary characters from CSS strings. It is a lightweight alternative to cssnano or clean-css, suitable for simple minification tasks. No configuration or dependencies required. Released as a single-function module with no updates since 2023. Not suitable for production-level optimization or large-scale projects.
npm install simple-css-minifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates minifying a CSS string using the default export.
Validate CSS before minifying, or use a full-featured minifier like cssnano.
For large files, consider a minifier that supports streaming (e.g., clean-css).
Evaluate using a maintained alternative like cssnano (actively developed) or csso.
Add "type": "module" to package.json or use dynamic import().
Use import minify from 'simple-css-minify' or const { minify } = await import('...') in CJS.No dependency data recorded yet.