vite-plugin-optimize-css-modules

JSON →
library 1.4.0 ·javascript
verified Apr 27, 2026

A Vite plugin that minifies CSS modules classnames in production builds by replacing long generated hashes with the shortest possible identifiers (a, b, c, ...). v1.4.0, actively maintained, supports Vite v2–v8. Reduces CSS file size by up to 30% and build time by up to 94% (benchmarked on Bootstrap and Materialize). Ships TypeScript types. Alternative to generic CSS minifiers because it targets classname mangling specifically for CSS modules, preserving functionality while maximizing compression.

total hits 9
actors 2 distinct systems
last hit 8d ago human
GPTBot
5
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · PT