-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Imported local aliases not working when used in selectors #561
Comments
It looks like this mght be fixed in a newer version of However, linking a local version of |
Okay, I'm diving in and have this PR, which partially solves this -- css-modules/postcss-icss-selectors#119 -- with a PR for this repo as well. It'll require updating to the more recent version of css-modules' icss loaders, but seems to be working well locally. |
Did you see the new-loader branch ? I highly appreciate your current work, but we need to be careful to not introduce breaking changes within the semver minor range of this loader atm. The intemediate goal is to release a new semver major of |
Oh cool, that's very good to know. I was thinking about how it would be nice to use postcss for my modules, but the fact that the loader needs to know about the exports was blocking. That sounds like it'll help a lot with my issues. I've got a draft of the PR and it might be backwards compatible (just need to investigate why some tests are failing). I'm going to push it up just so folks can look at it, but if it turns out to not be backwards compatible I won't worry. |
Closing if favor |
What's the status on this? |
Reporting css-modules/icss#12 for visibility. I'll copy the details, but I'm experiencing the exact same issue.
Do you want to request a feature or report a bug?
bug report
What is the current behavior?
What is the expected behavior?
fooClassName
is replaced with the local name forfoo
fromfoo.css
in bothbar.scss
and `baz.scssPlease mention other relevant information such as your webpack version, Node.js version and Operating System.
I'm currently testing with webpack 2.2.1, node 7.2.1, css-loader 0.28.4.
The text was updated successfully, but these errors were encountered: