This commit is contained in:
Rizky 2024-08-16 10:08:59 +07:00
parent 65e1d2bfd7
commit ce958826ab
1 changed files with 6 additions and 6 deletions

View File

@ -88,18 +88,18 @@ export const initFrontEnd = async (
) )
return; return;
console.log(
event, filename,
typeof fe !== "undefined" && !fe.rebuilding
? "start-rebuild"
: "rebuilding..."
);
if ( if (
filename?.endsWith(".tsx") || filename?.endsWith(".tsx") ||
filename?.endsWith(".ts") || filename?.endsWith(".ts") ||
filename?.endsWith(".css") || filename?.endsWith(".css") ||
filename?.endsWith(".html") filename?.endsWith(".html")
) { ) {
console.log(
filename,
typeof fe !== "undefined" && !fe.rebuilding
? "start-rebuild"
: "rebuilding..."
);
if (typeof fe !== "undefined" && !fe.rebuilding) { if (typeof fe !== "undefined" && !fe.rebuilding) {
fe.rebuilding = true; fe.rebuilding = true;
clearTimeout(fe.timeout); clearTimeout(fe.timeout);