-
-
Notifications
You must be signed in to change notification settings - Fork 384
The transitive only side effects may cause the effect of option optimization.chunkIds: "deterministic"
not to be as expected
#676
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
Labels
Comments
I'm not sure if this bug belongs mini-css-extract-plugin or webpack. The suspicious code I found in webpack:
|
Ok there are two problems here:
identifier() {
- return `css ${this._identifier} ${this._identifierIndex}`;
+ return `css|${this._identifier}|${this._identifierIndex}`;
} So that absolute paths can be replaced. That can be fixed in mini-css-plugin.
This can be fixed in webpack. When 2. is fixed 1. will no occur that often, but it could still happen in certain splitChunks configurations, which puts the css parts into separate chunks. |
sokra
added a commit
to webpack/webpack
that referenced
this issue
Jan 11, 2021
also use module.nameForCondition() to compute module ids fixes webpack-contrib/mini-css-extract-plugin#676
sokra
added a commit
to webpack/webpack
that referenced
this issue
Jan 11, 2021
also use module.nameForCondition() to compute module ids fixes webpack-contrib/mini-css-extract-plugin#676
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
See the final example,
npm run build:disable-feature
is the expected behavior:Actual Behavior
See the final example,
npm run build
is the actual behavior:Code
This bug may caused by this feature: #599 .
How Do We Reproduce?
Here is an example repository: https://github.com/l5oo00/demo-for-mini-css-extract-plugin
The text was updated successfully, but these errors were encountered: