Sergey Lyubka b7f9e5c947 Fix path
2024-05-08 14:07:20 +01:00

17 lines
458 B
Makefile

PWD := $(shell pwd)
NPX ?= npx
all: bundle.js main.css
make -C ../../../tutorials/http/http-server ARGS="-d $(PWD)"
# Bundle JS libraries (preact, preact-router, ...) into a single file
bundle.js:
curl -s https://npm.reversehttp.com/preact,preact/hooks,htm/preact,preact-router -o $@
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
main.css: index.html $(wildcard *.js)
$(NPX) tailwindcss -o $@ --minify
clean:
true