Add css to air's include_ext so edits to internal/web/ui/*.css trigger a rebuild. Add Tailwind build step to the air cmd so static/tailwind.css is always up to date on reload. static/ remains excluded so the generated output file doesn't cause a loop. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
11 lines
350 B
TOML
11 lines
350 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"]
|
|
exclude_dir = ["tmp", "bin", "static", ".git", "internal/db/sqlc"]
|
|
exclude_regex = [".*_templ\\.go$"]
|
|
delay = 200
|
|
stop_on_error = true
|