watch ignore precompile style lang (#150)

This commit is contained in:
Bung 2020-07-31 23:54:05 +08:00 • committed by GitHub
commit 7a36b19729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,9 @@ proc watchBuild(filePath: string, selectedCss: string, rest: string) {.thread.}
for path in walkDirRec("."):
if ".git" in path:
continue
var (_, _, ext) = splitFile(path)
if ext in [".scss",".sass",".less",".styl",".pcss",".postcss"]:
continue
if files.hasKey(path):
if files[path] != getLastModificationTime(path):
echo("File changed: " & path)