diff --git a/articles/Makefile b/articles/Makefile index 8b9213f..3115110 100644 --- a/articles/Makefile +++ b/articles/Makefile @@ -7,6 +7,15 @@ all: server_c server_c: server_c.c $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) +build: minify + +minify: + npx -y html-minifier-terser \ + --collapse-whitespace --remove-comments --remove-attribute-quotes \ + --remove-redundant-attributes --minify-css true --minify-js true \ + -o index.min.html index.html + npx -y terser sw.js -o sw.min.js -c -m + clean: rm -f server_c diff --git a/articles/index.html b/articles/index.html index 4c14435..1053099 100644 --- a/articles/index.html +++ b/articles/index.html @@ -40,35 +40,29 @@ article h1{margin:.25rem 0 .5rem;font-size:1.6rem}
- -