forked from svrjs/svrjs
build: fix the development build script by add the ready handler for chokidar watcher
This commit is contained in:
parent
5a0ea4007e
commit
11e99ead1c
1 changed files with 8 additions and 0 deletions
|
@ -179,6 +179,14 @@ if (!isDev) {
|
||||||
console.error("Stack:");
|
console.error("Stack:");
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
}
|
}
|
||||||
|
}).on("ready", () => {
|
||||||
|
try {
|
||||||
|
generateAssets();
|
||||||
|
} catch (err) {
|
||||||
|
console.error("There is a problem when regenerating assets!");
|
||||||
|
console.error("Stack:");
|
||||||
|
console.error(err.stack);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue