-
Notifications
You must be signed in to change notification settings - Fork 0
Doesn't work with CSS modules #1
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
Yep. Because local/global blocks was removed. |
css-loader still has old stuff which can override this plugin changes. |
@TrySound What do you mean "removed"? You mean the |
I meant global/local block was removed as behavior. |
|
@TrySound I don't want local by default, and |
:local .root {
position: relative;
background: url(../stylesheets/checkerboard.png); // https://github.com/webpack-contrib/css-loader/issues/74
}
:local .image1 {
position: absolute;
left: 0; // TODO: center the images instead?
top: 0;
}
:local .image2 {
composes: image1;
animation: fadeInOut 1s infinite;
}
@keyframes fadeInOut {
0% {
opacity: 1;
}
40% {
opacity: 0;
}
50% {
opacity: 0;
}
90% {
opacity: 1;
}
} |
@TrySound I just tried it that way, still comes out exactly the same way as in my original post. But even if it hadn't, having to prefix each individual class with |
@mnpenner I got it. Try to exclude keyframes from local block and consider they as always local (until different configuration) |
As far as I can tell, this doesn't seem to work with CSS modules. Input (LESS):
Output:
I think it's transforming the keyframes name, but then CSS modules is transforming it again (but only inside
.image2
) which is the exact same bug we were reporting over here.For reference, my webpack plugins are configured like so:
The text was updated successfully, but these errors were encountered: