💥 ags(scripts/style-handler): ignore vim temporary files

This commit is contained in:
retrozinndev
2025-01-22 20:45:33 -03:00
parent 37687b3e62
commit c7a34caa44
+3
View File
@@ -40,10 +40,13 @@ function watch(): void {
monitorFile( monitorFile(
`${path}`, `${path}`,
(file: string) => { (file: string) => {
// Ignore tmp files
if(!file.endsWith('~')) {
console.log(`[LOG] Stylesheet ${file} file updated`) console.log(`[LOG] Stylesheet ${file} file updated`)
compileStyle(); compileStyle();
applyStyle(); applyStyle();
} }
}
) )
) )