-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
postcss-loader doesn’t process CSS Modules composition target #40
Comments
You should use |
@ai It's not possible. |
+1, tried it before submitting the issue. @MoOx, do you know if there is a way to fix the issue without changes from the |
With my knowledge, there isn't. css-loader does things in a different context... That's sucks for css-modules, like a lot. |
Found the solution: webpack-contrib/css-loader#137. |
Also you can use |
@iamakulov maybe we should add this info to docs? Can you send a PR? |
Yep, sure, today or tomorrow. |
Good job! |
CSS Modules have a class composition feature which acts similarly to LESS’
:extend()
rule. It is enabled by thecomposes
property. The problem is that the class referenced by this property is not processed bypostcss-loader
.Example:
With
autoprefixer
added, the code is compiled to the following:As you see, the
user-select
property is processed and prefixed, whereasdisplay: flex
is not.The text was updated successfully, but these errors were encountered: