Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css module hash size? #120

Open
5angel opened this issue Nov 12, 2017 · 4 comments
Open

css module hash size? #120

5angel opened this issue Nov 12, 2017 · 4 comments

Comments

@5angel
Copy link

5angel commented Nov 12, 2017

Hello there. Is there a way to specify hash size of css modules? Classnames seem unnecessary long right now.

@bafxyz
Copy link

bafxyz commented Nov 15, 2017

Want this one as well

@billcreative
Copy link

billcreative commented Nov 19, 2017

👍 I agree too

@artembatura
Copy link

@5angel @bafxyz @billcreative I created repository based on this, but with fresh source from origin create-react-app and short css classnames. Supports now only CSS Modules, SASS & SASS Modules. Create issue, if you need other features
https://github.com/artemirq/advanced-react-scripts

@Ric-Lavers
Copy link

You should be able to select select the length of the hash changing the REACT_APP_CSS_MODULE_CLASSNAME_TEMPLATE in the .env file as such [sha512:hash:base32:<length>]

for example [sha512:hash:base32:5] will encode using sha512 encoding in base 32 with 5 characters. . . also ensure that this line isn't commented out and that you reset your server when making changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants