fix(nuxt-build): always wait for analyze plugin when enabled

This commit is contained in:
Pooya Parsa 2018-03-27 11:43:29 +04:30
parent 8ed2b60707
commit 5ee9ed459b

View File

@ -60,8 +60,9 @@ nuxt.hook('error', (_err, from) => Utils.fatalError(_err, from))
// Close function // Close function
const close = () => { const close = () => {
// In analyze mode wait for plugin opening the browser // In analyze mode wait for plugin
if (options.build.analyze === true && !(options.ci || options.test)) { // emitting assets and opening browser
if (options.build.analyze === true) {
return return
} }