Closed helios1138 closed 6 years ago
any help?
Hello. Thanks for all the work on this package. It would be great to be able to configure the localIdentName or make the default as helios suggests. Any chance of this please? Thanks!
Right now this configuration is hardcoded right here. It would be nice to have this constant configurable through .env file, with the code being something like this:
localIdentName:
process.env.REACT_APP_CSS_MODULE_IDENT_NAME ||
'[sha512:hash:base32]-[name]-[local]',
So that it wouldn't break anything...
What about this, @kitze?
Is it possible to configure
localIdentName
to be something else? Specifically, to have it be different fordevelopment
andproduction
builds? Currently it puts a huge hash in both. Preferably, I would like to have something readable, like[name]_[local]____[hash:base64:2]
in dev and the default hash (with no options or local names) in prod.