5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 22:33:46 +08:00

Ignore .git dirs in dev

This commit is contained in:
Lea Anthony 2022-03-13 10:19:25 +11:00
parent 09756b5150
commit 8037eab895

View File

@ -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
}