Compare commits

..

20 Commits

Author SHA1 Message Date
derek 64cc5066af Update Comment for angular sizes 2025-06-19 19:51:56 -07:00
derek ddb05c305c Update comment 2025-06-19 19:45:07 -07:00
derek b9cb93071d Turn off AOT as its the best option for produciton 2025-06-19 19:19:30 -07:00
derek ff91ff9109 Turn all optimizations back on for speed test 2025-06-19 18:56:57 -07:00
derek 57dca6974a For test with no Optimizations 2025-06-19 18:50:55 -07:00
derek d83ba35a84 Turn AOT back off 2025-06-19 18:45:57 -07:00
derek 7160515121 Try running AOT compile again 2025-06-19 18:19:31 -07:00
derek 66db26c74c Remove App.css 2025-06-19 18:13:16 -07:00
derek 4902f9c6ce Dont cut anything that is the app 2025-06-19 18:08:27 -07:00
derek 16a9c5ec5f Disable more trimmings 2025-06-19 18:03:48 -07:00
derek e1d3908e29 Turn off linking for the full Newtonsoft.Json 2025-06-19 17:58:18 -07:00
derek ea9d1fa24f Add more to newtonsoft ignores 2025-06-19 17:51:46 -07:00
derek 4f6fc16494 Turn linking back on with Newtonsoft not trimmed 2025-06-19 17:46:54 -07:00
derek 123f739b61 Turn off linking 2025-06-19 17:39:25 -07:00
derek 0cdcf9af71 Trim less 2025-06-19 17:31:50 -07:00
derek 59d6bb1ef1 Turn off AOT compile for blazor 2025-06-19 17:26:28 -07:00
derek 60d9b844fb Add comments to dockerfile 2025-06-19 17:09:41 -07:00
derek 1a08e99c6b . 2025-06-19 16:59:13 -07:00
derek 2e8893b240 add python to build container 2025-06-19 16:58:19 -07:00
derek d0af6ba73c update docker for wasm 2025-06-19 16:52:54 -07:00
4 changed files with 20 additions and 12 deletions
+7
View File
@@ -5,6 +5,13 @@ WORKDIR /src
# Copy all projects # Copy all projects
COPY ["src", "."] COPY ["src", "."]
# Needed for AOT Compiling wasm
RUN dotnet workload install wasm-tools
# Needed for compression of AOT files
RUN apt update
RUN apt install -y python3
# Restore the Server # Restore the Server
RUN dotnet restore 'MistoxWebsite.Server/MistoxWebsite.Server.csproj' RUN dotnet restore 'MistoxWebsite.Server/MistoxWebsite.Server.csproj'
-2
View File
@@ -1,2 +0,0 @@
/* This file is needed for compile for some reason */
/* Dont delete this file */
@@ -0,0 +1,4 @@
<linker>
<assembly fullname="Newtonsoft.Json" preserve="all" />
<assembly fullname="MistoxWebsite.Client" preserve="all" />
</linker>
@@ -5,27 +5,25 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<!-- Without Optimizations 3.92MB Initial Download / 302Kb home page load after -->
<!-- All Optimizations Without AOT 3.27MB Initial Download / 302Kb home page load after -->
<!-- All Optimizations With AOT 7.44MB Initial Download / 303Kb home page load after-->
<!-- Angular with ASPNET backend 0.49Kb Inital Download / 0.49Kb home page load after -->
<PublishTrimmed>true</PublishTrimmed> <PublishTrimmed>true</PublishTrimmed>
<TrimMode>link</TrimMode> <TrimMode>link</TrimMode>
<RunAOTCompilation>true</RunAOTCompilation> <RunAOTCompilation>false</RunAOTCompilation>
<InvariantGlobalization>true</InvariantGlobalization> <InvariantGlobalization>true</InvariantGlobalization>
<BlazorEnableCompression>true</BlazorEnableCompression> <BlazorEnableCompression>true</BlazorEnableCompression>
<BlazorWebAssemblyEnableLinking>true</BlazorWebAssemblyEnableLinking>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile> <EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
<StripSymbols>true</StripSymbols> <StripSymbols>true</StripSymbols>
</PropertyGroup> </PropertyGroup>
<!-- Retain important files on trimming -->
<ItemGroup> <ItemGroup>
<None Remove="App.razor.css" /> <TrimmerRootDescriptor Include="ILLink.Descriptors.xml" />
</ItemGroup>
<ItemGroup>
<Content Include="App.razor.css">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup> </ItemGroup>
<!-- Packages -->
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.3" />
@@ -33,6 +31,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup> </ItemGroup>
<!-- Project References -->
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\MistoxWebsite.Shared\MistoxWebsite.Shared.csproj" /> <ProjectReference Include="..\MistoxWebsite.Shared\MistoxWebsite.Shared.csproj" />
</ItemGroup> </ItemGroup>