diff --git a/v2/cmd/wails/internal/commands/dev/dev.go b/v2/cmd/wails/internal/commands/dev/dev.go index d9e333c83..1d168f91d 100644 --- a/v2/cmd/wails/internal/commands/dev/dev.go +++ b/v2/cmd/wails/internal/commands/dev/dev.go @@ -418,6 +418,10 @@ func initialiseWatcher(cwd string, logFatal func(string, ...interface{})) (*fsno return } // Ignore build directory + if strings.Contains(dir, ".git") { + return + } + // Ignore build directory if strings.HasPrefix(dir, filepath.Join(cwd, "build")) { return }