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)
chokidar.watch(process.cwd() + "/bundle", {
ignored: /(^|[\/\\])\../,
awaitWriteFinish: true,
alwaysStat: true,
}).on('change', (path) => {
if (ws.debugging) {
console.log("debugging, hot reload by pass")