In webpack 3.5.6, each assets in compilation.assets must have source and size, both being functions. Taking the existing setup, I added both to the object being written to compilation.assets.
Changes should be backwards-compatible, too - source and size only get set, if there weren't any!
In webpack 3.5.6, each assets in
compilation.assets
must have source and size, both being functions. Taking the existing setup, I added both to the object being written tocompilation.assets
.Changes should be backwards-compatible, too - source and size only get set, if there weren't any!
Tested changes with webpack 3.5.6.
See https://webpack.js.org/development/how-to-write-a-plugin/