From 2e8c9de24e6536bc72dd22ac6539bdfbc36f6b9a Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 12:55:14 +0200 Subject: [PATCH] =?UTF-8?q?chore(dev):=20watch=20static=20JS=20files=20in?= =?UTF-8?q?=20air=20=E2=80=94=20rebuild=20on=20discussion-sse.js=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- backend/.air.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/.air.toml b/backend/.air.toml index 8aaec7e..3ffe041 100644 --- a/backend/.air.toml +++ b/backend/.air.toml @@ -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