Closed GorvGoyl closed 3 years ago
@GorvGoyl could you give me little bit more info or a quick example to check the issue? How do you refer the json file emitted in other plugin? from new ZipPlugin snippet you provided I can not get the context.
This simple project reproduces the issue. file.json is generated but it is not included in the zip.
I have created a pull request to emit the assets in Webpack 5: https://github.com/tettusud/merge-jsons-webpack-plugin/pull/72
@gorbeia thank you for the pull request. I have changed the compilation hook to compilation.hooks.additionalAssets
which is more opt and is backward compatible with version 4. Please take a look and in case if you think otherwise, please update.
json file emiited by this plugin is not picked up by other plugins like
zip-webpack-plugin
orcompression-webpack-plugin
. It used to work in webpack 4 but not in v5.Code Snippet: