ro-savage / react-scripts-cssmodules

Enable CSS Modules for Create-React-App using the official CRA api
https://www.npmjs.com/package/react-scripts-cssmodules
47 stars 5 forks source link

Modify class naming scheme #9

Closed digster closed 6 years ago

digster commented 6 years ago

Is there a way to alter the final class naming scheme? We use SSR and babel to name the final css classes to [local]-[hash:base64:5]. We need the naming scheming to be the same at both the server and client side.

ro-savage commented 6 years ago

No, we don't allow this. As it's the same naming scheme as CRA will have.

I'd suggest using one of the forks that allows you to customise webpack completely.

There will actually be an update coming out for this to update the naming scheme, as a new naming convention was just merged into CRA v2. This will be a breaking change for react-scripts-cssmodules.