Compare commits
20 Commits
059c755d14
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 64cc5066af | |||
| ddb05c305c | |||
| b9cb93071d | |||
| ff91ff9109 | |||
| 57dca6974a | |||
| d83ba35a84 | |||
| 7160515121 | |||
| 66db26c74c | |||
| 4902f9c6ce | |||
| 16a9c5ec5f | |||
| e1d3908e29 | |||
| ea9d1fa24f | |||
| 4f6fc16494 | |||
| 123f739b61 | |||
| 0cdcf9af71 | |||
| 59d6bb1ef1 | |||
| 60d9b844fb | |||
| 1a08e99c6b | |||
| 2e8893b240 | |||
| d0af6ba73c |
@@ -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'
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user