chore(dev): watch static JS files in air — rebuild on discussion-sse.js changes
Remove static/ from exclude_dir, add js to include_ext. Exclude static/tailwind.css via regex to prevent rebuild loop from the Tailwind output file triggering its own regeneration. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
681c094b0c
commit
2e8c9de24e
1 changed files with 3 additions and 3 deletions
|
|
@ -4,8 +4,8 @@ tmp_dir = "tmp"
|
|||
[build]
|
||||
cmd = "templ generate && ./bin/tailwindcss -i tailwind.input.css -o static/tailwind.css && go build -o ./tmp/web ./cmd/web"
|
||||
bin = "./tmp/web"
|
||||
include_ext = ["go", "templ", "css"]
|
||||
exclude_dir = ["tmp", "bin", "static", ".git", "internal/db/sqlc"]
|
||||
exclude_regex = [".*_templ\\.go$"]
|
||||
include_ext = ["go", "templ", "css", "js"]
|
||||
exclude_dir = ["tmp", "bin", ".git", "internal/db/sqlc"]
|
||||
exclude_regex = [".*_templ\\.go$", "static/tailwind\\.css$"]
|
||||
delay = 200
|
||||
stop_on_error = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue