Skip to content
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

babel-plugin-css-modules-transform and css-loader create different class names #94

Closed
b-ponomarenko opened this issue Sep 23, 2018 · 3 comments

Comments

@b-ponomarenko
Copy link

I have repo (https://github.com/b-ponomarenko/react-boilerplate) where I try to compile css on server using babel-plugin-css-modules-transform (I have the same generateScopedName setting) and I note, that when I run compiling process separately on client and on server I have different hash names, example:
for:

.foo {
  background: red;
}

server: { foo: ‘Foo__foo__-Pwji’ }
client: {foo: "Foo__foo__1ZdkW"}

When I run this processes together hash name from server appears to client bundle, and style-loader don't create styles in runtime. What could be wrong?

@edwardfxiao
Copy link

@b-ponomarenko what fix this?

@MaheshSinghSawant
Copy link

im facing the same issue. @b-ponomarenko how did you resolve this?

@edwardfxiao
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants