1
0
Fork 0
forked from svrjs/svrjs

build: fix the development build script by add the ready handler for chokidar watcher

This commit is contained in:
Dorian Niemiec 2024-11-09 13:33:17 +01:00
parent 5a0ea4007e
commit 11e99ead1c

View file

@ -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);
}
}); });
} }