aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--watcher.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/watcher.go b/watcher.go
index ed70dc3..6a8b98d 100644
--- a/watcher.go
+++ b/watcher.go
@@ -56,6 +56,11 @@ func newWatcher(htmlg *htmlGenerator, dir string) (w *watcher, err error) {
Includes: []string{
`.*\.adoc$`,
},
+ Excludes: []string{
+ `^\..*`,
+ `node_modules/.*`,
+ `vendor/.*`,
+ },
},
Delay: time.Second,
Callback: w.onChangeFileMarkup,