Simplify index wrapper, namespacing.
Experiment with function exports. Not quite working.
This commit is contained in:
parent
740211ed4c
commit
b891520ff9
5 changed files with 71 additions and 95 deletions
|
|
@ -14,7 +14,10 @@ task make, "Native build":
|
|||
exec "mkdir -p build && nim c --outdir:build -d:release --opt:speed src/nim_wasm_test.nim"
|
||||
|
||||
task makeweb, "Emscripten build":
|
||||
exec "mkdir -p build && nim c -d:emscripten -d:release src/nim_wasm_test.nim"
|
||||
exec """
|
||||
mkdir -p build && cp index.html build/
|
||||
nim c -d:emscripten -d:release src/nim_wasm_test.nim
|
||||
"""
|
||||
|
||||
task runweb, "Run a local webserver for the wasm build":
|
||||
exec "nimhttpd -H:'Cross-Origin-Opener-Policy: same-origin' -H:'Cross-Origin-Embedder-Policy: require-corp' build/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue