mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 12:14:07 +01:00
chore: Add build times to live reload
This commit is contained in:
@@ -51,8 +51,10 @@ function handleFileChange() {
|
||||
clearTimeout(timeoutId);
|
||||
}
|
||||
timeoutId = setTimeout(async () => {
|
||||
const time = Date.now();
|
||||
await rebuildAll();
|
||||
sendEventsToAll();
|
||||
console.log('Rebuild & Refresh complete in' + (Date.now() - time) + 'ms');
|
||||
timeoutId = undefined;
|
||||
}, 100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user