When using option appendHash: true, Webpack 5 throws the following error:
HookWebpackError: Cannot add property integrity, object is not extensible
I cannot have a stacktrace of the error, but it might be due to the way the asset is "renamed", webpack might keep a track of the previous asset even if deleted.
|
delete compilation.assets[file.asset] |
When using option
appendHash: true, Webpack 5 throws the following error:I cannot have a stacktrace of the error, but it might be due to the way the asset is "renamed", webpack might keep a track of the previous asset even if deleted.
fontmin-webpack/lib/index.js
Line 229 in fcfcad4