Closed zlk89 closed 3 years ago
I can reproduce this, discussing a fix over at https://github.com/webpack/webpack/pull/12642
@zlk89 if you like you can test the fix with the tarball found at the bottom of this page, planning to roll a release soon as well.
thanks for the quick fix. Verified that it generates different filenames now!
Thanks for the bug report. Released in v5.0.0-alpha.4.
Reproducible steps
yarn
yarn compile
- you will find a file4d606cb93b59421d4129.js
(line 10 isJSON.parse('{"key":"value","key2":"value2","key3":"value","key4":"value2","key5":"value"
)5.24.0
to5.21.2
which it doesn't have this improvementyarn
againyarn compile
- you will find the file4d606cb93b59421d4129.js
again, but the file content is different (line 10 isJSON.parse("{\"key\":\"value\",\"key2\":\"value2\",\"key3\":\"value\",\"key4\":\"value2\"
)Why it is related with SRI plugin?
If you comment out SRI plugin in webpack config, this issue doesn't happen any more. In step 7, there will be no
4d606cb93b59421d4129.js
file, instead, it creates a new file with different filename