raylib-zig icon indicating copy to clipboard operation
raylib-zig copied to clipboard

Adding a custom html file for WASM build

Open CashWasabi opened this issue 1 year ago • 1 comments

When compiling for emscripten target there is an option to also use a custom html file. I think this could be enabled by adding an argument to the linkWithEmscripten function inside emcc.zig. I already tested it out with a harcoded path and it works.

Is this something you would like to add?

If you want I could just create a PR that then enables the option to parse a custom html file if needed.

The benefit here is that you can e.g. just have a simple canvas instead of the template html file which is normally generated.

CashWasabi avatar Aug 23 '24 13:08 CashWasabi