wrapper-webpack-plugin icon indicating copy to clipboard operation
wrapper-webpack-plugin copied to clipboard

Add support for processAssets

Open j0ashm opened this issue 2 years ago • 0 comments

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-existing writeFile function.
  • Should compatibility for optimizeChunkAssets be retained? I have it retained for now, but I'm not sure if it's desirable

j0ashm avatar Jul 27 '23 14:07 j0ashm