chore(dev): watch CSS files in air and include Tailwind in rebuild cmd
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>
This commit is contained in:
parent
70fe3848fb
commit
6e64cfb3ed
1 changed files with 2 additions and 2 deletions
|
|
@ -2,9 +2,9 @@ root = "."
|
||||||
tmp_dir = "tmp"
|
tmp_dir = "tmp"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
cmd = "templ generate && go build -o ./tmp/web ./cmd/web"
|
cmd = "templ generate && ./bin/tailwindcss -i tailwind.input.css -o static/tailwind.css && go build -o ./tmp/web ./cmd/web"
|
||||||
bin = "./tmp/web"
|
bin = "./tmp/web"
|
||||||
include_ext = ["go", "templ"]
|
include_ext = ["go", "templ", "css"]
|
||||||
exclude_dir = ["tmp", "bin", "static", ".git", "internal/db/sqlc"]
|
exclude_dir = ["tmp", "bin", "static", ".git", "internal/db/sqlc"]
|
||||||
exclude_regex = [".*_templ\\.go$"]
|
exclude_regex = [".*_templ\\.go$"]
|
||||||
delay = 200
|
delay = 200
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue