arazni / blades-in-the-sheets

A Blades in the Dark character sheet progressive web app in WebAssembly
https://arazni.github.io/blades-in-the-sheets/
6 stars 1 forks source link

Enable Trimming to Reduce App Size #21

Closed arazni closed 1 year ago

arazni commented 1 year ago

Can remove internationalization support libraries that are baked into C#.

Can use trimming to try to limit the number of default C# libraries that get downloaded to support the app, since many are not actually used.

<PublishTrimmed>true</PublishTrimmed>
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
<InvariantGlobalization>true</InvariantGlobalization>
arazni commented 1 year ago

https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/configure-trimmer?view=aspnetcore-7.0