Skip to content

Commit

Permalink
fix: buildEnd hook (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored Nov 5, 2021
1 parent 441e5e1 commit 5dfb89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function getWebpackPlugin<UserOptions = {}> (
plugin.buildStart?.()

if (plugin.buildEnd) {
compiler.hooks.done.tapAsync(plugin.name, () => {
compiler.hooks.done.tapPromise(plugin.name, () => {
plugin.buildEnd!()
})
}
Expand Down

0 comments on commit 5dfb89a

Please sign in to comment.