-
Notifications
You must be signed in to change notification settings - Fork 161
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
Second build doesn't output CSS bundle #301
Comments
Might be related: CSS file is not emitted on incremental rebuild in watch mode |
Having the same issue with Webpack 4.4.1 + mini-css-extract-plugin 0.4.0, even though the linked issues was closed. |
Ended up removing hard source plugin. Webpack 4 is fast in watch mode anyway. |
Any updates on this issue, looks this was addressed previously for Also, many people aren't finding Webpack 4 faster, in fact slower on incremental builds |
Created minimum use case example here https://github.com/dtothefp/hard-cache-mini-css-webpack-4 |
I'm having the same issue, with Webpack 4.6.0 and mini-css-extract-plugin 0.4.0. Here is my project repo: https://github.com/Venryx/DebateMap Note that, in my case at least, the problem isn't that the css file isn't getting generated. Rather, it's that the css file is not getting linked into the generated html file. In the initial build (when cache has been cleared), the |
@Venryx that probably has to do with the stats that are generated by Webpack, have a look there as HTML plugin would read these stats to inject the Would be great to at least get some feedback on this issue. I've discovered that extracting CSS at all times in my dev builds took a large app that I have from a 30s rebuild to 3s. Would be good to combine with this plugin to decrease subsequent full Webpack builds |
@mzgoddard any thoughts on this issue? |
@dtothefp @nzav I added |
We should be good on this issue. |
thanks @mzgoddard. I'm going to add this into my project now and will report back if I come across any issues |
@mzgoddard unfortunately this is now "broken" in a new way. I'm not sure of the intended use case of how CSS should update with caching but now if I save CSS and refresh the browser I will see updated CSS. But, if I quit the process and rebuild with the new CSS the styles will revert back to those at the time at the beginning of the first build. I made a branch of my repo with updated plugin to v0.6.9 https://github.com/dtothefp/hard-cache-mini-css-webpack-4/tree/update-0.6.9 Steps to reproduce:
I can open a new issue or you can re-open this one? |
@dtothefp I would like a new issue if you could. What you posted is already really helpful. Please post that in the issue. What you are encountering is a separate issue from this one so I'd rather have a new one. The issue you are having sounds like a symptom some other issues have where caches are not fully saved. In your case it sounds like the md5 cache is saved but the module cache is not. Causing the effect you're seeing. I'll write more on the new issue. |
@mzgoddard thanks for the reply...made a new issue here #339 |
I'm using Webpack 4.2.0 and mini-css-extract-plugin to extract and bundle my CSS assets.
First build:
Second build:
As you can see, only Javascript files are generated. The main problem is that I no longer can clean the output folder before the build.
What could be the reason?
The text was updated successfully, but these errors were encountered: