build: use npx tailwindcss instead of global binary
This commit is contained in:
parent
220a1f91b0
commit
6fe7dc3ff5
10
Makefile
10
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user