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
However, only the file main.179.c539139b868f46f81e90.css exists (that is correct). The replacement function includes mapping for chunks that don't have CSS (eg: "303":"runtime~main" or "229":"31d6cfe0d16ae931b73c"). In the case of a big app this results in a bloated runtime.
Note that using chunkhash instead of contenthash does not solve the issue.
Expected Behavior
When using
filename: '[name].[contenthash].css'
, it produces a runtime chunk that only contains values for existing CSS files.Actual Behavior
Runtime is bloated with replacement maps that point to inexistent CSS files. For example, using this config:
I got the following in the runtime:
However, only the file
main.179.c539139b868f46f81e90.css
exists (that is correct). The replacement function includes mapping for chunks that don't have CSS (eg:"303":"runtime~main"
or"229":"31d6cfe0d16ae931b73c"
). In the case of a big app this results in a bloated runtime.Note that using
chunkhash
instead ofcontenthash
does not solve the issue.How Do We Reproduce?
See https://github.com/scinos/mini-css-bug-contenthash for a reproduction repo.
The text was updated successfully, but these errors were encountered: