Skip to content

Commit

Permalink
TestApp - use Static Assets Middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Nov 18, 2024
1 parent b65e5e7 commit 1394787
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Havit.Blazor.TestApp/Havit.Blazor.TestApp/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />

<!-- Bootstrap CSS (you can set the Bootstrap flavor with a parameter) -->
@((MarkupString)HxSetup.RenderBootstrapCssReference())

<!-- Default values for additional CSS Variables (+ import Bootstrap Icons) -->
<link href="_content/Havit.Blazor.Components.Web.Bootstrap/defaults.css" rel="stylesheet" />

<link rel="stylesheet" href="app.css" />
<link rel="stylesheet" href="Havit.Blazor.TestApp.styles.css" />
<link rel="stylesheet" href="@Assets["_content/Havit.Blazor.Components.Web.Bootstrap/bootstrap.min.css"]" />
<link rel="stylesheet" href="@Assets["Havit.Blazor.TestApp.styles.css"]" />
<link rel="stylesheet" href="@Assets["app.css"]" />
<ImportMap />
<HeadOutlet />
</head>

Expand Down
2 changes: 1 addition & 1 deletion Havit.Blazor.TestApp/Havit.Blazor.TestApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

app.UseHttpsRedirection();

app.UseStaticFiles();
app.MapStaticAssets();
app.UseAntiforgery();

app.MapRazorComponents<App>()
Expand Down

0 comments on commit 1394787

Please sign in to comment.