Merge branch 'master' into orellazri-master
This commit is contained in:
commit
e09c9f4896
|
@ -51,14 +51,17 @@ const esbuildOptions = {
|
||||||
'.png': 'file',
|
'.png': 'file',
|
||||||
},
|
},
|
||||||
define: defineEnv,
|
define: defineEnv,
|
||||||
incremental: watchMode,
|
}
|
||||||
watch: {
|
|
||||||
|
if (watchMode) {
|
||||||
|
esbuildOptions.incremental = true
|
||||||
|
esbuildOptions.watch = {
|
||||||
onRebuild(err) {
|
onRebuild(err) {
|
||||||
if (err == null) {
|
if (err == null) {
|
||||||
bs.reload()
|
bs.reload()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.emptyDirSync('dist/')
|
fs.emptyDirSync('dist/')
|
||||||
|
|
Loading…
Reference in New Issue