From eaea2a53af2bdf640f523be074b794df393d1c9a Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Tue, 22 Oct 2019 20:50:55 +0200 Subject: [PATCH] fix(Compiler): show delete log only on tracked file --- src/Services/Compiler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/Compiler.ts b/src/Services/Compiler.ts index 63362ec..ac4b800 100644 --- a/src/Services/Compiler.ts +++ b/src/Services/Compiler.ts @@ -212,10 +212,9 @@ export class Compiler { * Handling static file removals */ private async _handleFileRemoval (filePath: string, outDir: string, httpServer: HttpServer) { - fancyLogs.delete(filePath) - if (this._rcWrapper.isReloadServerFile(filePath)) { await remove(join(outDir!, filePath)) + fancyLogs.delete(filePath) httpServer.restart() return } @@ -225,6 +224,7 @@ export class Compiler { */ if (this._rcWrapper.isMetaFile(filePath)) { await remove(join(outDir!, filePath)) + fancyLogs.delete(filePath) } }