You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flashing of unstyled HTML in extract-text-webpack-plugin, reconsider setting allChunks: true? #2415
Although setting allChunks: false in the configuration of extract-text-webpack-plugin increases the initial page load, it has the consequence of flashing unstyled HTML as the user moves between uncached chunks, since the page renders before addStyles can do its magic. So far it's been the only customization I need and I'd love to not have to eject.
This was originally discussed in #408 but the unstyled flashing wasn't mentioned which I feel is a dealbreaker. If this isn't up for continued debate than you can just close it.
Reacted by Maros Hluska, Chang Liu and Harrison Lo
currently doing this via patch package. I feel this is an opinionated solve but not sure any practical alternatives exist? At the very least this is a big gotcha for code splitting with CRA
What's the status on this one? I'm experiencing this issue as well. Edit: nevermind, this issue only exists for me in dev because of style-loader. In prod, ExtractTextPlugin fixes it.
Hey guys, this should be fixed with the mini-css-extract-plugin which we've added as part of webpack 4 in the next branch. I don't believe there will be any more releases for CRA 1.x. Please test the CRA2 release if possible, and open a new issue if you see something wrong.
Activity
Timer commentedon Jun 6, 2017
We currently don't have the time to look into this, but I'll tag it for later review. Thanks!
gaearon commentedon Jun 6, 2017
I didn't know this was a problem. Is this a known issue in webpack? Is it even possible to fix?
I'm okay with allChunks: true I guess.
gaearon commentedon Jun 22, 2017
Can you provide a project reproducing this?
lawlmart commentedon Sep 26, 2017
It sounds like this has been reproduced and the consensus is to set allChunks: true. I’d love to see this fixed soon, would you accept a PR?
rt2zz commentedon Dec 12, 2017
currently doing this via patch package. I feel this is an opinionated solve but not sure any practical alternatives exist? At the very least this is a big gotcha for code splitting with CRA
mhluska commentedon Dec 16, 2017
What's the status on this one? I'm experiencing this issue as well. Edit: nevermind, this issue only exists for me in dev because of style-loader. In prod, ExtractTextPlugin fixes it.
gaearon commentedon Jan 8, 2018
I don't know. Is there a pull request from somebody affected that fixes it?
bugzpodder commentedon May 31, 2018
Hey guys, this should be fixed with the mini-css-extract-plugin which we've added as part of webpack 4 in the next branch. I don't believe there will be any more releases for CRA 1.x. Please test the CRA2 release if possible, and open a new issue if you see something wrong.