-
-
Notifications
You must be signed in to change notification settings - Fork 384
"Extracting all CSS in a single file" does not work when using a vendor
cache group
#224
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
@jeffijoe PR welcome to fix docs |
@evilebottnawi Does this mean that this works as intended? I'd be more than happy to submit a PR to the docs, but with a work-around for the desired behavior. 😄 |
It doesn't work even without vendor for me. Still have one css file for one chunk. |
I had something similar which i solved differently:
The vendor bundle excludes all files with |
Use something like this:
For |
Is it necessary to package all the CSS files together? |
the reasons i'm doing this is because of the same-domain-concurrent-connection-limit, too many css files(which is loaded before all js files) will delay the loading of subsequent js files... |
the trailing comma will cause syntax error |
We extract to atomic css, but also running into this issue. We end up with a bunch of chunks of css with many duplicate styles, which actually degrades runtime perf as well as bundle size, so a bit more than inconvenient... would take a stab at this but webpack plugins are really hard to do right. |
@natew because bundling is not easy, can you provide example, I will look at this |
For anyone who faced with this porlbem you can use Simple example:
Docs already uses |
This is my cache group config. I'm after
Plugin:
The result is 2 files,
bundle.css
and1.bundle.css
. If I remove thevendor
group, I only getbundle.css
which is what I want, but in doing so I end up with a single JS file which is not optimal.I'd like a single
bundle.css
while keeping separatevendor.js
andapp.js
. 😄The text was updated successfully, but these errors were encountered: