Next.js Classnames Minifier
JSON →@nimpl/classnames-minifier (v0.1.6) is a Next.js plugin that compresses CSS module class names (e.g., .header → .a) with persistent mappings across rebuilds without clearing the build cache. It integrates with css-loader >=4.0.0, supports CSS/SCSS/Sass modules, and works with both webpack and Turbopack. Unlike alternatives that require clearing cache on changes, it maintains synchronization between minified names and compiled components. Ships TypeScript types, actively maintained.