From 41990117c8dde2f5690d84e8a8a333dd9b7c97f4 Mon Sep 17 00:00:00 2001 From: untir_l <87096069+untir-l@users.noreply.github.com> Date: Fri, 25 Feb 2022 12:13:54 +0530 Subject: Tell Emscripten not to minify the HTML shell file since it causes errors For some reason Emscripten's HTML minification step introduces errors into the markup, which is very sloppy. Examples are missing the space in the doctype declaration and messing with meta tags in some ways. Since our HTML shell file is tiny we will just not bother minifying it. If it was large we would want to introduce a separate and better minification step. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b200abf..3458c89 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ hitomezashi_cli.o: cli/hitomezashi_cli.c cli/hitomezashi_cli.h hitomezashi_web.html: web/hitomezashi_web_shell.html hitomezashi_web.o libhitomezashi.a - $(CC) $(LDFLAGS) $(LDLIBS) -O3 --shell-file ./web/hitomezashi_web_shell.html -o hitomezashi_web.html hitomezashi_web.o libhitomezashi.a + $(CC) $(LDFLAGS) $(LDLIBS) -O3 -s MINIFY_HTML=0 --shell-file ./web/hitomezashi_web_shell.html -o hitomezashi_web.html hitomezashi_web.o libhitomezashi.a hitomezashi_web.o: web/hitomezashi_web.c web/hitomezashi_web.h $(CC) -c $(CFLAGS) -I./lib/ web/hitomezashi_web.c -- cgit v1.2.3-57-g22cb