From c39c7cd51eb50a81b29ffccd8dad030dfc0ad476 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 8 Nov 2018 14:46:07 +0330 Subject: [PATCH] update webpack/base for webpackbar 3.0.2 --- packages/webpack/src/config/base.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index 7bf3cc9af1..1c9f60fe1c 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -276,12 +276,13 @@ export default class WebpackBaseConfig { this.nuxt.callHook('bundler:change', shortPath) } }, - allDone: (context) => { - if (!context.hasErrors) { - this.nuxt.callHook('bundler:done') - } else { + done: (context) => { + if (context.hasErrors) { this.nuxt.callHook('bundler:error') } + }, + allDone: () => { + this.nuxt.callHook('bundler:done') } } }))