mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-14 19:03:20 +00:00
Allow to bypass CSS rebuild
This commit is contained in:
1 parent
1c78ed1fed
commit
33aa021e96
1 file changed
+2
-1
@@ -5,6 +5,7 @@ GZIP ?= gzip # For compressing files in web_root/
|
|||||||
OUT ?= -o $(PROG) # Compiler argument for output file
|
OUT ?= -o $(PROG) # Compiler argument for output file
|
||||||
SOURCES = main.c mongoose.c net.c packed_fs.c # Source code files
|
SOURCES = main.c mongoose.c net.c packed_fs.c # Source code files
|
||||||
CFLAGS = -W -Wall -Wextra -g -I. # Build options
|
CFLAGS = -W -Wall -Wextra -g -I. # Build options
|
||||||
|
NPX ?= npx
|
||||||
|
|
||||||
# Mongoose build options. See https://mongoose.ws/documentation/#build-options
|
# Mongoose build options. See https://mongoose.ws/documentation/#build-options
|
||||||
CFLAGS_MONGOOSE += -DMG_ENABLE_PACKED_FS=1
|
CFLAGS_MONGOOSE += -DMG_ENABLE_PACKED_FS=1
|
||||||
@@ -32,7 +33,7 @@ web_root/bundle.js:
|
|||||||
|
|
||||||
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
|
# Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter
|
||||||
web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
|
web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
|
||||||
npx tailwindcss -o $@ --minify
|
$(NPX) tailwindcss -o $@ --minify
|
||||||
|
|
||||||
# Generate packed filesystem for serving Web UI
|
# Generate packed filesystem for serving Web UI
|
||||||
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js
|
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js
|
||||||
|
|||||||
Reference in new issue
Block a user