kitze / custom-react-scripts

[DEPRECATED, use customize-cra] Allow custom config for create-react-app without ejecting
https://custom-react-scripts.netlify.com
MIT License
993 stars 97 forks source link

css modules className with -- #153

Open gabrielbs opened 6 years ago

gabrielbs commented 6 years ago

Why CSS Modules are generating classNames with -- on the end?

example:

I'm using this pattern: REACT_APP_CSS_MODULE_CLASSNAME_TEMPLATE = '[path]-[hash:base64:5]';

And the generated class always has a -- on the end, like this:

.box { }

generates

{ box: "_36lIp-box--" } (always with --)

Someone has any idea?