levp / wrapper-webpack-plugin

A webpack plugin that wraps output files (chunks) with custom text or code.
91 stars 37 forks source link

Add support for processAssets #22

Open j0ashm opened 1 year ago

j0ashm commented 1 year ago

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: