classnames-minifier

JSON →
library 0.1.8 ·javascript
verified Jun 4, 2026

Webpack plugin that minifies CSS module class names to short alphanumeric tokens (e.g., .header -> .a) to reduce HTML and CSS size by up to 20%, improving FCP. Stable v0.1.8, requires css-loader >=4.0.0. Supports caching between builds, custom prefixes, and reserved names. The minification logic is derived from next-classnames-minifier. Ships TypeScript types. Alternative to css-minimizer-webpack-plugin for CSS modules specifically.