-
Notifications
You must be signed in to change notification settings - Fork 561
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 className conflict #48
css className conflict #48
Comments
Because you have assigned variable 'small' twice. |
@saintwinkle What? This breaks all the concepts of the encapsulation/modules. If this really happens, then it's just a bug. Bad bug, but still simply a bug (and not conceptual feature). |
That's my fault. Try to delete this lines: https://github.com/webpack/css-loader/blob/c2f9150caba481e7506265860e0f81216ee11e41/lib/processCss.js#L146-L148 |
Just set up a repo https://github.com/chenxsan/css-module-class-conflict to demo this problem, I had these css codes
in app.css, expected the exported class name to be
border__small__xxxxx borderRadius__small__xxxxx
, but i got this:I got two
borderRadius__small__xxxxx
, the firstsmall
was overwritten by the secondsmall
.Is this an expected behavior?
The text was updated successfully, but these errors were encountered: