Closed
Description
Hey everyone, just sharing a problem I found, to see if I'm missing something or if the suggested improvement could be a good idea.
If you go with the default options, or define your own localIdentName
, the generated hash
, without a hashPrefix
, will be a digest of the relative path and the local classname.
This causes collision when you have two separate modules built with webpack that have a file with the same path, with the same classname in it (both modules have src/blah/styles.scss
with the class .classname
in it)
To solve this collision, I added a hashPrefix
to the query
, making it random on each build (something like <package-name> + Date.now()
works great).
Isn't it a good idea to make a random hashPrefix
be default behaviour?