We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b566b8b commit 83dbe5fCopy full SHA for 83dbe5f
examples/mqtt-dashboard/dashboard/Makefile
@@ -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)"
+all:
+ make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"
6
7
# Bundle JS libraries (preact, preact-router, ...) into a single file
8
bundle.js:
9
curl -s https://npm.reversehttp.com/preact,preact/hooks,htm/preact,preact-router -o $@
10
11
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
+NPX ?= npx
12
main.css: index.html $(wildcard *.js)
13
$(NPX) tailwindcss -o $@ --minify
14
0 commit comments