1
Fork 0

Merge branch 'master' into orellazri-master

This commit is contained in:
viktorstrate 2021-05-25 17:28:49 +02:00
commit e09c9f4896
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
1 changed files with 6 additions and 3 deletions

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/')