Skip to content

Can we have a --ignore-pattern flag for watch mode? #1279

@patrickkdev

Description

@patrickkdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions