Skip to content

Commit 62afc5c

Browse files
committed
Enable static web asset fingerprinting in project
Added FingerprintStaticWebAssets property to the project file to support cache busting for static assets. Also updated indentation for consistency; no other functional changes.
1 parent 3ede8e8 commit 62afc5c

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

3-
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<Nullable>enable</Nullable>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
8-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
8+
<FingerprintStaticWebAssets>true</FingerprintStaticWebAssets>
9+
</PropertyGroup>
910

10-
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0" PrivateAssets="all" />
13-
</ItemGroup>
11+
<ItemGroup>
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0" PrivateAssets="all" />
14+
</ItemGroup>
1415

15-
<ItemGroup>
16-
<ProjectReference Include="..\BlazorExpress.ChartJS.Demo.RCL\BlazorExpress.ChartJS.Demo.RCL.csproj" />
17-
</ItemGroup>
16+
<ItemGroup>
17+
<ProjectReference Include="..\BlazorExpress.ChartJS.Demo.RCL\BlazorExpress.ChartJS.Demo.RCL.csproj" />
18+
</ItemGroup>
1819

19-
<ItemGroup>
20-
<Content Update="wwwroot\staticwebapp.config.json">
21-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
22-
</Content>
23-
</ItemGroup>
20+
<ItemGroup>
21+
<Content Update="wwwroot\staticwebapp.config.json">
22+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23+
</Content>
24+
</ItemGroup>
2425

2526
</Project>

0 commit comments

Comments
 (0)