Changed unminify plugin to hook into step before optimization

This commit is contained in:
RJChow 2022-04-11 21:31:19 +08:00
parent f6b7ddb0db
commit 464bcb7783
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class UnminifyWebpackPlugin {
compilation.hooks.processAssets.tap(
{
name: 'UnminifyWebpackPlugin',
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE,
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_DERIVED,
},
( assets ) => {
Object.entries( assets ).forEach(