watch ignore precompile style lang (#150)
This commit is contained in:
parent
98a2d1ce50
commit
7a36b19729
1 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,9 @@ proc watchBuild(filePath: string, selectedCss: string, rest: string) {.thread.}
|
||||||
for path in walkDirRec("."):
|
for path in walkDirRec("."):
|
||||||
if ".git" in path:
|
if ".git" in path:
|
||||||
continue
|
continue
|
||||||
|
var (_, _, ext) = splitFile(path)
|
||||||
|
if ext in [".scss",".sass",".less",".styl",".pcss",".postcss"]:
|
||||||
|
continue
|
||||||
if files.hasKey(path):
|
if files.hasKey(path):
|
||||||
if files[path] != getLastModificationTime(path):
|
if files[path] != getLastModificationTime(path):
|
||||||
echo("File changed: " & path)
|
echo("File changed: " & path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue