From c7a34caa4442c2375a132db34d7e290aa84550ea Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Wed, 22 Jan 2025 20:45:33 -0300 Subject: [PATCH] :boom: ags(scripts/style-handler): ignore vim temporary files --- ags/scripts/style-handler.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ags/scripts/style-handler.ts b/ags/scripts/style-handler.ts index 433305e..b7505bf 100644 --- a/ags/scripts/style-handler.ts +++ b/ags/scripts/style-handler.ts @@ -40,9 +40,12 @@ function watch(): void { monitorFile( `${path}`, (file: string) => { - console.log(`[LOG] Stylesheet ${file} file updated`) - compileStyle(); - applyStyle(); + // Ignore tmp files + if(!file.endsWith('~')) { + console.log(`[LOG] Stylesheet ${file} file updated`) + compileStyle(); + applyStyle(); + } } ) )