Skip to content

Commit 83dbe5f

Browse files
committed
Windows friendly
1 parent b566b8b commit 83dbe5f

File tree

1 file changed

+3
-5
lines changed
  • examples/mqtt-dashboard/dashboard

1 file changed

+3
-5
lines changed

examples/mqtt-dashboard/dashboard/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
PWD := $(shell pwd)
2-
NPX ?= npx
3-
4-
all: bundle.js main.css
5-
make -C ../../../tutorials/http/http-server ARGS="-d $(PWD)"
1+
all:
2+
make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"
63

74
# Bundle JS libraries (preact, preact-router, ...) into a single file
85
bundle.js:
96
curl -s https://npm.reversehttp.com/preact,preact/hooks,htm/preact,preact-router -o $@
107

118
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
9+
NPX ?= npx
1210
main.css: index.html $(wildcard *.js)
1311
$(NPX) tailwindcss -o $@ --minify
1412

0 commit comments

Comments
 (0)