mongoose/examples/mqtt-dashboard/dashboard/Makefile

15 lines
421 B
Makefile
Raw Normal View History

2024-08-17 15:20:41 +08:00
all:
make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"
2023-11-08 17:39:56 +08:00
# 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
2024-08-17 15:20:41 +08:00
NPX ?= npx
2023-11-08 17:39:56 +08:00
main.css: index.html $(wildcard *.js)
2023-12-17 04:42:34 +08:00
$(NPX) tailwindcss -o $@ --minify
2023-11-08 17:39:56 +08:00
clean:
true