From 0da33876e1b1fcf7004accf45de0bc3a5532b400 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Tue, 3 Feb 2026 13:10:13 +0100 Subject: [PATCH] add commands to makefile for hot reload --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 53da244..ee8af5e 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,12 @@ web: go run ./cmd/web dev: - go tool templ generate -watch -cmd "go run ./cmd/web" \ No newline at end of file + @go tool templ generate -watch -cmd "go run ./cmd/web" + +tw: + @npx --yes @tailwindcss/cli -i ./pkg/web/input.css -o ./pkg/web/assets/css/styles.css --watch + +watch: + @make -j2 dev tw + +.PHONY: tidy clean build cli tui web dev tw \ No newline at end of file