Skip to content

Commit

Permalink
watchout with a short delay
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Feb 17, 2024
1 parent 3c9373d commit 9d5196d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ proc precompile*(engine: TimEngine, callback: TimCallback = nil,
engine.clearTemplateByPath(file.getPath())

var w = newWatchout(@[engine.getSourcePath() / "*"], onChange,
onFound, onDelete, recursive = true, ext = @["timl"])
onFound, onDelete, recursive = true, ext = @["timl"], delay = 200)
# start browser sync server in a separate thread
createThread(sync, browserSync, (browserSyncPort, browserSyncDelay))
# start filesystem monitor in a separate thread
Expand Down

0 comments on commit 9d5196d

Please sign in to comment.