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

composes .. from ... statements no longer work #22

Closed
ewohlken opened this issue Dec 21, 2016 · 2 comments
Closed

composes .. from ... statements no longer work #22

ewohlken opened this issue Dec 21, 2016 · 2 comments
Labels

Comments

@ewohlken
Copy link

If I have a class A in index.css that composes a class B from test.css, the component that has attribute styleName='A'should inherit both the A class styles and the B class styles. However this is not the case, see my example below:

https://github.com/ewohlken/babel-plugin-react-css-modules-test/

@ksrb
Copy link

ksrb commented Dec 27, 2016

@ewohlken in the scss loader try replacing:
css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]

with:
css?modules&importLoaders=2&localIdentName=[path]___[name]__[local]___[hash:base64:5]

There's a mistake in the loader.

Take a look at the thread for importLoaders for more info.

@gajus gajus added the question label Jan 6, 2017
@gajus
Copy link
Owner

gajus commented Jan 6, 2017

Thank you @ksrb

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

No branches or pull requests

3 participants