wrapper-webpack-plugin
wrapper-webpack-plugin copied to clipboard
Add support for processAssets
This PR adds support for processAssets - webpack's successor to optimizeChunkAssets.
Currently, if you use optimizeChunkAssets in your build, you will be met with a deprecation warning.
I'm not a Webpack expert by any means, so most of the code for this PR is based off of this comment in #11.
Something that someone who has better knowledge of Webpack should comment on:
- Is it possible to get the asset/chunk hash from
Source? I don't see a method to get it directly on the documentation, and I'd like to be able to just use the pre-existingwriteFilefunction. - Should compatibility for optimizeChunkAssets be retained? I have it retained for now, but I'm not sure if it's desirable