Skip to content

Commit

Permalink
fix: Watch _templ.go files
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Jul 8, 2024
1 parent 1561fd8 commit b0bfb9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ func (h *FileChangeHandler) Handle(ctx context.Context, e fsnotify.Event) error
})
return nil
}
if strings.HasSuffix(e.Name, "_templ.go") ||
strings.HasSuffix(e.Name, ".templ") {
if strings.HasSuffix(e.Name, ".templ") {
return nil // Ignore templ files, templ watch will take care of them.
}

Expand Down

0 comments on commit b0bfb9a

Please sign in to comment.