Experiment with resource loading (in the form of a config file).
Change compile time checks from "if" to "when", for proper type definitions.
This commit is contained in:
parent
b891520ff9
commit
0d70fefc8b
4 changed files with 29 additions and 10 deletions
|
|
@ -23,7 +23,7 @@ when defined( emscripten ):
|
|||
--panics:on
|
||||
--exceptions:goto
|
||||
--define:noSignalHandler
|
||||
--passL:"-Oz" # Production bu ld
|
||||
# --passL:"-Oz" # Production bu ld
|
||||
# --passL:"-O0 -gDebug -gsource-map" # Debug build
|
||||
--passL:"-s EXPORT_ES6"
|
||||
--passL:"-s EXPORT_NAME=NimTest"
|
||||
|
|
@ -31,5 +31,6 @@ when defined( emscripten ):
|
|||
# --passL:"-s EXPORT_ALL=1" # make all public methods available to JS
|
||||
# --passL:"-s JSPI" # async support (new)
|
||||
# --passL:"-s ALLOW_MEMORY_GROWTH=1"
|
||||
--passL:"--preload-file resources"
|
||||
--passL:"-o build/nimtest.js"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue