You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| BootsharpName | bootsharp | Name of the generated JavaScript module. |
8
+
| BootsharpEmbedBinaries | true | Whether to embed binaries to the JavaScript module file. |
9
+
| BootsharpAggressiveTrimming | false | Whether to disable some .NET features to reduce binary size. |
10
+
| BootsharpOptimize | none | Whether to optimize the WASM for `speed` or `size`. Requires [Binaryen](https://github.com/WebAssembly/binaryen) in system path. |
Below is an example configuration, which will make Bootsharp name compiled module "backend" (instead of the default "bootsharp"), publish the module under solution directory root (instead of "/bin"), disable binaries embedding and instead publish them under "public/bin" directory one level above the solution root and enable aggressive assembly trimming to reduce build size:
18
+
Below is an example configuration, which will make Bootsharp name compiled module "backend" (instead of the default "bootsharp"), publish the module under solution directory root (instead of "/bin"), disable binaries embedding and instead publish them under "public/bin" directory one level above the solution root and enable aggressive assembly trimming and WASM optimization to reduce the build size:
18
19
19
20
```xml
20
21
<ProjectSdk="Microsoft.NET.Sdk">
@@ -27,6 +28,7 @@ Below is an example configuration, which will make Bootsharp name compiled modul
3.To optimize for size instead of speed, replace `-O3` with `-Oz`
64
+
2.Make sure `wasm-opt` is in the system path
65
+
3.Add `<BootsharpOptimize>speed</BootsharpOptimize>` to the project config to optimize for speed; replace `speed` with `size` to instead optimize for size
0 commit comments