diff options
Diffstat (limited to 'internal/server/dev.go')
-rw-r--r-- | internal/server/dev.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/server/dev.go b/internal/server/dev.go index 7898a09..0763065 100644 --- a/internal/server/dev.go +++ b/internal/server/dev.go @@ -90,7 +90,8 @@ func (watcher FileWatcher) Start(callback func(string)) { } } } - if event.Has(fsnotify.Rename) || event.Has(fsnotify.Write) { + if event.Has(fsnotify.Rename) || event.Has(fsnotify.Write) || + event.Has(fsnotify.Create) || event.Has(fsnotify.Chmod) { if timer == nil { timer = time.AfterFunc(checkSettleInterval, func() { callback(event.Name) |