Skip to content

Commit feb8c78

Browse files
committed
chore: update trimming sample
1 parent deca2de commit feb8c78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

samples/trimming/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ To test and measure build size:
99
| | Raw | Brotli |
1010
|-------------|-------|--------|
1111
| .NET 8 | 2,298 | 739 |
12-
| .NET 9 LLVM | 1,749 | 520 |
12+
| .NET 9 LLVM | 1,737 | 518 |

samples/trimming/cs/Trimming.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<BootsharpEmbedBinaries>false</BootsharpEmbedBinaries>
88
<!-- Disabling non-essential .NET features reduces minimal build size by ~35%. -->
99
<BootsharpAggressiveTrimming>true</BootsharpAggressiveTrimming>
10+
<!-- Optimize the compiled WASM binary for size. -->
11+
<BootsharpOptimize>size</BootsharpOptimize>
1012
</PropertyGroup>
1113

1214
<ItemGroup>

0 commit comments

Comments
 (0)