-
-
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
CSS order not correct when using split chunks #959
Comments
I update your test case to test it also the native CSS support. The problem is not specific to mini-css-extract-plugin. It's how split chunk works, the order stability of chunks is not guaranteed, confirmed by one of the maintainers of webpack:
|
It is a bug in HTML webpack plugin, we need to improve our logic, anyway please read this #959 (comment) |
Close due jantimon/html-webpack-plugin#1838, I will look on it soon |
Bug report
I want split css chunks from one bundle to multiple for better parallel loading using webpack split chunks config, and found the chunks loading sort is not expected.
Actual Behavior
When split multiple css chunks, the css chunks loading order is not same as the the import sort in source code.
Expected Behavior
When split multiple css chunks, the css chunks load time should same as import time in source code, i tested for scripts only with console.log(xxx), the sort is correct for both.
How Do We Reproduce?
An minimum repo, the readme file describe how to reproduce.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: