fix
This commit is contained in:
parent
30ccaac624
commit
cac2e1ea1e
|
|
@ -75,12 +75,15 @@ export const initFrontEnd = async (
|
|||
rebuilding: false,
|
||||
};
|
||||
|
||||
if (!code.internal.frontend[id_site].watch) {
|
||||
console.log('watching', dir.data(root))
|
||||
if (code.internal.frontend[id_site].watch) {
|
||||
code.internal.frontend[id_site].watch.close();
|
||||
}
|
||||
console.log("watching", dir.data(root));
|
||||
code.internal.frontend[id_site].watch = watch(
|
||||
dir.data(root),
|
||||
{
|
||||
recursive: true,
|
||||
persistent: true
|
||||
},
|
||||
async (event, filename) => {
|
||||
const fe = code.internal.frontend[id_site];
|
||||
|
|
@ -124,7 +127,6 @@ export const initFrontEnd = async (
|
|||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
const fe = code.internal.frontend[id_site];
|
||||
fe.rebuilding = true;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue