mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-23 18:49:01 +08:00
Windows friendly
This commit is contained in:
parent
b566b8b45a
commit
83dbe5fa3e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user