emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.9k stars 3.32k forks source link

Do not minify HTML entry point #8547

Closed Beuc closed 5 years ago

Beuc commented 5 years ago

Since a few versions emcc also minifies the HTML entry point (built from shell.html).

This file is pretty small and does not benefit a lot from minification. However minification is a significant hassle when testing changes in a customized shell.html, or when shipping an HTML entry point that is possibly further customized by the end user (like I do with RenPyWeb, where I provide a generic runtime for Ren'Py games).

I couldn't find an option to selectively remove minification of the HTML entry point either.

kripken commented 5 years ago

cc @juj who added that, I believe.

juj commented 5 years ago

You can pass -s MINIFY_HTML=0 to disable the HTML minification. See

https://github.com/emscripten-core/emscripten/blob/f64d84e683489472bcd6062a506707c22390ab97/src/settings.js#L1381-L1386

Beuc commented 5 years ago

Thanks. I did look for it in emcc --help (where minification-influencing -g1/-g2 options are located) and in ChangeLog.md.