Closed sxzz closed 3 years ago
All stages here: https://github.com/webpack/webpack/blob/a16909c5fdb9efe9f1dd20226a1e7fc216160d1a/lib/Compilation.js#L3462-L3467
Content hash works when obfuscator runs after PROCESS_ASSETS_STAGE_OPTIMIZE_HASH
stage.
So, I think I have to use the latest stage PROCESS_ASSETS_STAGE_REPORT
.
Released as 3.3.0
. Please try it.
Already fixed! Thanks.
Nice!
I don't know if this change could produce any side-effects, so please let me know if you found any problems
When the following options are enabled, contenthash will be affected and failed to load chunks. (Webpack 5)
Reproduce repo: https://github.com/sxzz/webpack-obfuscator-test