Fix mini-css-extract-plugin 0.4.3 issue#176
Conversation
Resolves shellscape#167 mini-css-extract-plugin reports additional, incorrect information for files that are refenced in CSS. The first time we see the file the `module.userRequest` is correct, and we add to `moduleAssets` correctly. However mini-css-extract-plugin then also reports the same `file` but with `module.userRequest` set to the CSS file that references it, which caused us to overwrite the good value in `moduleAssets`. See the change in mini-css-extract-plugin that caused this webpack/mini-css-extract-plugin#177
|
Sorry, I have found a case where the first time the asset is reported it is from the CSS file, so this doesn't work. |
Second attempt. Based on webdeveric/webpack-assets-manifest#40 Resolves shellscape#167 mini-css-extract-plugin reports additional, incorrect information for files that are refenced in CSS. The first time we see the file the `module.userRequest` is correct, and we add to `moduleAssets` correctly. However mini-css-extract-plugin then also reports the same `file` but with `module.userRequest` set to the CSS file that references it, which caused us to overwrite the good value in `moduleAssets`. See the change in mini-css-extract-plugin that caused this webpack/mini-css-extract-plugin#177
|
I've pushed a change which is based on the |
|
/cc @mastilver |
|
would it be possible for someone to check this PR? @mastilver @danethurber ? |
|
hm, we need:
|
|
@evilebottnawi Here is a minimal example for your second point: https://github.com/Lyrkan/repro-manifest-plugin-167 |
|
WIP on this inside webpack, please don't merge this, feedback soon |
|
@evilebottnawi is there a PR or issue in webpack to follow up this? |
|
@fernandopasik sorry, a lot of developers on holidays, we can merge this as workaround right now and fix it late |
|
oh, that would be great! |
|
@evilebottnawi are there any updates on this one? :)
do you know which issue or pr is there to follow? |
|
@fernandopasik can be merged as is, it will be solved in |
|
Oh good to know! |
|
@fernandopasik don't have permissions on this /cc @mastilver |
|
@mastilver any chance we can merge this fix? webpack 5 is still far away from release |
|
/cc @mastilver friendly ping again |
|
Hey @evilebottnawi, if @mastilver is not available do you think @danethurber could merge this? |
|
I don't know, PR can be merged |
|
This fix works for me, any plans to merge the PR? Meanwhile I decided to use instead https://github.com/webdeveric/webpack-assets-manifest |
|
/cc @karlvr can you do rebase? |
|
@evilebottnawi as i can see this PR is already on top of the master branch, no rebase is needed |
|
@eugef oh, yes, sorry |
|
Thanks for opening this PR a while back, and I'm sorry that it didn't get attention sooner. We've landed a major refactor in #222 that has resulted in some significant conflicts. If this issue is still outstanding, please open a new PR after rebasing to |
Resolves #167
mini-css-extract-plugin reports additional, incorrect information for files that are refenced in CSS. The first time we see the file the
module.userRequestis correct, and we add tomoduleAssetscorrectly. However mini-css-extract-plugin then also reports the samefilebut withmodule.userRequestset to the CSS file that references it, which caused us to overwrite the good value inmoduleAssets.See the change in mini-css-extract-plugin that caused this webpack/mini-css-extract-plugin#177