update webpack/base for webpackbar 3.0.2

This commit is contained in:
Pooya Parsa 2018-11-08 14:46:07 +03:30
parent e8aabac197
commit c39c7cd51e

View File

@ -276,12 +276,13 @@ export default class WebpackBaseConfig {
this.nuxt.callHook('bundler:change', shortPath) this.nuxt.callHook('bundler:change', shortPath)
} }
}, },
allDone: (context) => { done: (context) => {
if (!context.hasErrors) { if (context.hasErrors) {
this.nuxt.callHook('bundler:done')
} else {
this.nuxt.callHook('bundler:error') this.nuxt.callHook('bundler:error')
} }
},
allDone: () => {
this.nuxt.callHook('bundler:done')
} }
} }
})) }))