MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / generate_html

Function generate_html

tools/link.py:2636–2647  ·  view source on GitHub ↗
(target, options, js_target, target_basename, wasm_target)

Source from the content-addressed store, hash-verified

2634
2635
2636def generate_html(target, options, js_target, target_basename, wasm_target):
2637 logger.debug('generating HTML')
2638
2639 if settings.MINIMAL_RUNTIME:
2640 generate_minimal_runtime_html(target, options, js_target, target_basename)
2641 else:
2642 generate_traditional_runtime_html(target, options, js_target, wasm_target)
2643
2644 if settings.MINIFY_HTML and (settings.OPT_LEVEL >= 1 or settings.SHRINK_LEVEL >= 1):
2645 minify_html(target)
2646
2647 convert_line_endings_in_file(target, options.output_eol)
2648
2649
2650def find_library(lib, lib_dirs):

Callers 1

phase_final_emittingFunction · 0.85

Calls 4

minify_htmlFunction · 0.85

Tested by

no test coverage detected