Fix UI build halt problem

This commit is contained in:
viktorstrate
2021-05-25 17:26:47 +02:00
parent e2b7d6e18d
commit 491a5ab19a

View File

@@ -51,14 +51,17 @@ const esbuildOptions = {
'.png': 'file',
},
define: defineEnv,
incremental: watchMode,
watch: {
}
if (watchMode) {
esbuildOptions.incremental = true
esbuildOptions.watch = {
onRebuild(err) {
if (err == null) {
bs.reload()
}
},
},
}
}
fs.emptyDirSync('dist/')