diff options
author | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-25 06:43:54 +0000 |
---|---|---|
committer | untir-l <87096069+untir-l@users.noreply.github.com> | 2022-02-25 09:56:49 +0000 |
commit | 41990117c8dde2f5690d84e8a8a333dd9b7c97f4 (patch) | |
tree | f9e9e8790aa614f4cd6caeb6fdaca76d1f07a1b9 /Makefile | |
parent | 924052e1f260fdcef5d1ba876113515e71d8db5e (diff) | |
download | hitomezashi-41990117c8dde2f5690d84e8a8a333dd9b7c97f4.tar hitomezashi-41990117c8dde2f5690d84e8a8a333dd9b7c97f4.tar.gz hitomezashi-41990117c8dde2f5690d84e8a8a333dd9b7c97f4.zip |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |