Skip to content

Commit

Permalink
Windows friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Aug 17, 2024
1 parent b566b8b commit 83dbe5f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/mqtt-dashboard/dashboard/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
PWD := $(shell pwd)
NPX ?= npx

all: bundle.js main.css
make -C ../../../tutorials/http/http-server ARGS="-d $(PWD)"
all:
make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"

# 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
NPX ?= npx
main.css: index.html $(wildcard *.js)
$(NPX) tailwindcss -o $@ --minify

Expand Down

0 comments on commit 83dbe5f

Please sign in to comment.