mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
Windows friendly
This commit is contained in:
1 parent
b566b8b45a
commit
83dbe5fa3e
1 file changed
+3
-5
@@ -1,14 +1,12 @@
|
|||||||
PWD := $(shell pwd)
|
all:
|
||||||
NPX ?= npx
|
make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"
|
||||||
|
|
||||||
all: bundle.js main.css
|
|
||||||
make -C ../../../tutorials/http/http-server ARGS="-d $(PWD)"
|
|
||||||
|
|
||||||
# Bundle JS libraries (preact, preact-router, ...) into a single file
|
# Bundle JS libraries (preact, preact-router, ...) into a single file
|
||||||
bundle.js:
|
bundle.js:
|
||||||
curl -s https://npm.reversehttp.com/preact,preact/hooks,htm/preact,preact-router -o $@
|
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
|
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
|
||||||
|
NPX ?= npx
|
||||||
main.css: index.html $(wildcard *.js)
|
main.css: index.html $(wildcard *.js)
|
||||||
$(NPX) tailwindcss -o $@ --minify
|
$(NPX) tailwindcss -o $@ --minify
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user