-
-
Notifications
You must be signed in to change notification settings - Fork 608
Using the same class names with CSS Modules (Webpack 2) #364
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
Comments
If you try declaring I think by default it might be assuming |
|
@azat-io Hm. That shouldn’t be throwing up like that. You’re getting closer and using the syntax that https://github.com/webpack/css-loader#css-modules suggests. I’ve gotten that working before. This is what my
Does setting |
@DangoDev This also not works |
I created a repository with my code and Webpack 2 config: |
@azat-io thanks for posting your setup. I think it has something to do with PostCSS; in your file if I remove |
@DangoDev So, is it means that it's postcss-loader problem, not css-loader? |
Moved here |
Hi there!
I'm using:
Here is a part of my
webpack.babel.config.js
:In my project there is a folder
components
. I this folder there are a lot of React components.Form
Here is a
components/Form/index.jsx
And
components/Form/index.css
:Content
components/Content/index.jsx
components/Content/index.css
After building app both
.title
selectors has the same hash. Looks pretty strangeWhat's wrong? 🤔
The text was updated successfully, but these errors were encountered: