A build-time utility that renames CSS class names to shorter generated strings, reducing HTML/CSS/JS bundle size. v1.0.1 is the latest stable version (no release cadence documented). Key differentiator: focuses specifically on class name minification rather than general CSS minification, with support for prefix/suffix/whitelist and glob-based file selection. Limitations include inability to handle dynamically concatenated class names (e.g., template literals). Alternative: css-minimizer-webpack-plugin or purgecss for more comprehensive CSS optimization.
npm install css-classes-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minifies CSS class names in JS/HTML files and replaces them in CSS files, adding prefix and suffix, excluding a whitelist.
Ensure all class names are literal strings without concatenation or template variables.
Include all CSS files in both `files` and `css` parameters.
Use a build tool with proper AST parsing for more reliable class renaming.
Use import statement: import cssClassesMinifier from 'css-classes-minifier';
Run: npm install css-classes-minifier
No dependency data recorded yet.