Here is my --watch-pattern regex:
(.+\.(go|templ|css|txt|js|png|jpe?g|gif|webp)$)
I’m trying to prevent the file ./mage_output_file.go from triggering generate/reload, but I haven’t found a way to do it by only tweaking the regex. It seems like this might not be possible with the regex implementation used by templ, or maybe I’m missing something. Either way, I think having a flag like --ignore-pattern would be useful.