mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +00:00
Fix UI build halt problem
This commit is contained in:
@@ -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/')
|
||||
|
||||
Reference in New Issue
Block a user