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>
11 lines
372 B
TOML
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
|