From 6fe7dc3ff5022ef23e50c648811d15bc17f6dc74 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 12 Jun 2026 18:09:20 +0800 Subject: [PATCH] build: use npx tailwindcss instead of global binary --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9872f20..0842a3b 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,13 @@ build: @$(MAKE) build-editor @$(MAKE) highlight-css - @tailwindcss -i input.css -o public/style.css --minify + @npx tailwindcss -i input.css -o public/style.css --minify @dx build --release --debug-symbols=false build-linux: @$(MAKE) build-editor @$(MAKE) highlight-css - @tailwindcss -i input.css -o public/style.css --minify + @npx tailwindcss -i input.css -o public/style.css --minify @dx build --release --debug-symbols=false --target x86_64-unknown-linux-musl highlight-css: @@ -22,16 +22,16 @@ build-editor: dev: @echo "Starting tailwindcss watch and dx serve..." - @tailwindcss -i input.css -o public/style.css --watch & \ + @npx tailwindcss -i input.css -o public/style.css --watch & \ TAILWIND_PID=$$!; \ trap 'kill $$TAILWIND_PID 2>/dev/null; exit' INT TERM EXIT; \ dx serve --addr 0.0.0.0 css: - @tailwindcss -i input.css -o public/style.css + @npx tailwindcss -i input.css -o public/style.css css-watch: - @tailwindcss -i input.css -o public/style.css --watch + @npx tailwindcss -i input.css -o public/style.css --watch test: @cargo test