await write finish
This commit is contained in:
parent
2c2d3e4113
commit
53543ecfd7
@ -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")
|
||||||
|
Reference in New Issue
Block a user