await write finish

This commit is contained in:
王劲鹏 2020-04-20 17:16:44 +08:00 committed by osborn
parent 2c2d3e4113
commit 53543ecfd7

View File

@ -12,6 +12,8 @@ setTimeout(() => {
ws.listen(7777) ws.listen(7777)
chokidar.watch(process.cwd() + "/bundle", { chokidar.watch(process.cwd() + "/bundle", {
ignored: /(^|[\/\\])\../, ignored: /(^|[\/\\])\../,
awaitWriteFinish: true,
alwaysStat: true,
}).on('change', (path) => { }).on('change', (path) => {
if (ws.debugging) { if (ws.debugging) {
console.log("debugging, hot reload by pass") console.log("debugging, hot reload by pass")