Skip to content

css module hash size? #120

Open
Open

Description

@5angel

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

Activity

  1. bafxyz commented on Nov 15, 2017

    @bafxyz

    Want this one as well

  2. heybillsy commented on Nov 19, 2017

    @heybillsy

    👍 I agree too

  3. artembatura commented on Jan 15, 2018

    @artembatura

    @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

  4. Ric-Lavers commented on Apr 8, 2018

    @Ric-Lavers

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions