Nicer css module generated names
Created by: modernserf
You may not even realize this, but your current config supports css modules, it just doesn't use them by default -- i.e. you can use :local
in CSS files and it will generate class names, it just doesn't make all class selectors local by default.
I'm totally fine with global being the default scope for now (much less confusing for beginners) and adding the :local
pseudo-class where I need it, but it would be nice if more human-readable classes were generated. Use something like:
style!css?localIdentName=[path][name]---[local]---[hash:base64:5]!postcss
as the loader config in webpack.