Skip to content

Commit 236fc19

Browse files
committed
maybe improve handling of local file watching for tailwind
1 parent 8585cce commit 236fc19

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.air.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ tmp_dir = "tmp"
33

44
[build]
55
bin = "./scripts/air.sh"
6-
cmd = "./scripts/tailwind.sh && cd web && zola build"
6+
cmd = "./scripts/tailwind.sh"
7+
include_dir = ["web/templates"]
8+
include_ext = ["html"]
79
delay = 1000
8-
exclude_dir = ["web/public", "web/static", "tmp", "bin"]
9-
exclude_file = []
10-
exclude_regex = []
1110
exclude_unchanged = false
1211
follow_symlink = false
13-
full_bin = ""
14-
include_dir = []
15-
include_ext = ["md", "html", "css"]
1612
kill_delay = "500ms"
1713
log = "build-errors.log"
1814
stop_on_error = true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
22
/bin
3+
/tmp

scripts/air.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
caddy file-server --listen :1111 --root web/public
3+
sleep +inf

0 commit comments

Comments
 (0)