mongoose/examples/mqtt-dashboard/dashboard/Makefile
Sergio R. Caprile 9de31ba816 updates
2023-12-08 18:36:59 -03:00

16 lines
426 B
Makefile

PWD := $(shell pwd)
all: bundle.js main.css
make -C ../../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