-
-
Notifications
You must be signed in to change notification settings - Fork 384
Rebuild css modules with defined order #98
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
mini-css-extract-plugin no longer uses Technically your solution should also work with the mini-css-extract-plugin. I don't know why it doesn't work. Does a very simple plugin works that just calls |
Thanks! Will do that. |
Here we are: No css file with mini-css-extract-plugin demo It works with ExtractTextPlugin@4 (ETP4 demo), but I cannot use it because of webpack-contrib/extract-text-webpack-plugin#767 |
Actually webpack-contrib/extract-text-webpack-plugin#767 has the same symptoms |
Any suggestions so far?) |
@Diokuz need fix this bug and send PR |
Cool! So, it is a confirmed webpack4 bug and it will be fixed in near future? |
@evilebottnawi @sokra any news on this issue?) |
@Diokuz PR welcome |
@evilebottnawi unfortunately I have no time to explore webpack code to find out why |
@Diokuz issue in my todo, but i have big todo 😄 |
I think I have this same issue. I'm issuing a rebuild of my CSS files in the |
When I was debugging this, I noticed there are 2 very similar CSS modules (as in Webpack modules in the compilation) for each actual CSS file in the dependency tree. I don't know if this is relevant, but I wonder whether only one is updating or something? I've carved them down to show the only differences I can find, which mostly seems to be in their dependencies. After the rebuild, the first one ends up with source of |
Hi there)
I wrote a-webpack-plugin which makes it possible to generate super short css classNames, like
.a
.b
....zz
...My plugin works with ExtractTextPlugin, and it doesn't with
mini-css-extract-plugin
(The problem is that when I rebuild css modules in a proper order, mini-css-extract-plugin
just drops all css files → no css output at all.
https://github.com/Diokuz/a-webpack-plugin/blob/master/index.js#L158
Any suggestions how to fix that?
My plugin's algorythm is very simple:
As I understood from your source, you use childCompiler in loader, which is reused in plugin part. But I still dont get it, why
compilation.rebuildModule
not working...Thanks in advance)
The text was updated successfully, but these errors were encountered: