diff --git a/Cargo.toml b/Cargo.toml index 65d19dc..283d850 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,6 @@ futures = "^0.1.26" wasm-bindgen-test = "0.2.45" # NOTE: keep in sync with wasm-bindgen version -[profile.release] +[profile.release] # Attempts to minimize file size lto = true opt-level = 'z' \ No newline at end of file diff --git a/Makefile.toml b/Makefile.toml index c5708ef..7c44bbf 100755 --- a/Makefile.toml +++ b/Makefile.toml @@ -20,19 +20,24 @@ args = ["build", "--release"] description = "Build with wasm-pack" install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" } command = "wasm-pack" -args = ["build", "--target", "no-modules", "--out-name", "package", "--dev"] +args = ["build", "--target", "web", "--out-name", "package", "--dev"] [tasks.create_wasm_release] description = "Build with wasm-pack" install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" } command = "wasm-pack" -args = ["build", "--target", "no-modules", "--out-name", "package"] +args = ["build", "--target", "web", "--out-name", "package"] [tasks.build] description = "Build, and create wasms" workspace = false dependencies = ["compile", "create_wasm"] +[tasks.build_release] +description = "Build, and create wasms, with the release flag" +workspace = false +dependencies = ["compile_release", "create_wasm_release"] + [tasks.watch] description = "Build, create wasms, and watch/recompile files for changes" workspace = false @@ -86,4 +91,4 @@ args = ["test", "--headless", "--${@}"] [tasks.test_h_release] extend = "test_h" description = "Run headless tests in release mode. Ex: 'cargo make test_h firefox'. Test envs: [chrome, firefox, safari]" -args = ["test", "--headless", "--${@}", "--release"] \ No newline at end of file +args = ["test", "--headless", "--${@}", "--release"] diff --git a/index.html b/index.html index 860dc2d..b7a5d50 100755 --- a/index.html +++ b/index.html @@ -10,25 +10,15 @@