xtablo-source/backend/.air.toml
Arthur Belleville 2e8c9de24e
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>
2026-05-17 12:55:14 +02:00

11 lines
372 B
TOML

root = "."
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", "js"]
exclude_dir = ["tmp", "bin", ".git", "internal/db/sqlc"]
exclude_regex = [".*_templ\\.go$", "static/tailwind\\.css$"]
delay = 200
stop_on_error = true