是否可以像现在一样轻松地编译Emscripten,但不需要控制台和Emscripten徽标

Is it possible to compile Emscripten as easily as now, but without the console and emscripten logo?

本文关键字:Emscripten 编译 徽标 控制台 不需要 一样 是否      更新时间:2023-10-16

使用emscripten编译C++时,不带任何参数,它会生成一个带有控制台和emscripten徽标的html文件,此外还有webgl画布。

是否可以禁用徽标\控制台,让它为一个充满webgl画布的空白网页生成html\js?

使用emcc --shell-file <path>

https://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html