From 9270fc0b1593178a3f0d4fe3247c934f2d5f238a Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 16 Dec 2023 20:42:34 +0000 Subject: [PATCH] Allow to bypass CSS rebuild --- examples/mqtt-dashboard/dashboard/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/mqtt-dashboard/dashboard/Makefile b/examples/mqtt-dashboard/dashboard/Makefile index d81889e2..2c9efe69 100644 --- a/examples/mqtt-dashboard/dashboard/Makefile +++ b/examples/mqtt-dashboard/dashboard/Makefile @@ -1,4 +1,5 @@ PWD := $(shell pwd) +NPX ?= npx all: bundle.js main.css make -C ../../http-server ARGS="-d $(PWD)" @@ -9,7 +10,7 @@ bundle.js: # Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter main.css: index.html $(wildcard *.js) - npx tailwindcss -o $@ --minify + $(NPX) tailwindcss -o $@ --minify clean: true