-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Question: Is there any way to only extract the css files from initial chunk? #369
Comments
Please use gitter or stackoverflow for questions, it is bug tracker, thanks! You |
Was there a resolution on this? We have a bunch of dynamic imports, and they're each getting their own CSS files and I'd like to bubble them up to their closest entrypoint, but haven't been able to find the right config to achieve it. |
@jcreamer898 I've never found the right config to solve this problem with |
is this not your want? |
No, I want to load css modules only when you need |
I don't think the browser needs to make extra an request to fetch the css file of its own async js chunk which it has been loaded. So I want to disable.
It should be something like the "fallback" option of
extract-text-webpack-plugin
and its behavior. However, I'm not able to find an equivalent way withmini-css-extract-plugin
and webpack 4.For example, let's say we have several pages will be loaded on demand:
And the output files should be like this:
How can I achieve this? Thank you very much.
The text was updated successfully, but these errors were encountered: