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
This PR adds support for
processAssets
- webpack's successor tooptimizeChunkAssets
.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:
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-existingwriteFile
function.