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(); + } } ) )