vite-plugin-optimize-css-modules
vite-plugin-optimize-css-modules copied to clipboard
🗜 Mangle / minimize css module classnames in production like facebook and Google do!
Currently, the default dictionary is: `_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789` Based on a character frequency analysis of the code in a few of my projects it should be re-ordered to this: `etionraldfps0gx-1chbum4v6w25k9y873zjHCONADLYqBEFGIJKMPQRSTUVWXZ_` For me...
One thing that surprised me about CSS Modules in Vite is that it doesn't automatically shake unreferenced classes. ```css .unused { font-size: 42px; } .used { font-size: 27px; } ```...