Skip to content

Commit

Permalink
a little bit more functionality shown in the README example
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacfie committed Aug 7, 2024
1 parent 3037c47 commit ac3a162
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ builder.Services.AddViteFest(o =>
```


`Login.cshtml`:
`SomePage.cshtml` or `SomePage.razor`:
```html
@inject ViteFest.IVite Vite

<script src='@Vite.GetUrl("ClientApp/shared.ts")'></script>
<script src='@Vite.GetUrl("ClientApp/login.ts")'></script>

@foreach (var cssUrl in Vite.GetCssUrls("ClientApp/shared.ts"))
{
<link rel="stylesheet" href="@cssUrl" />
}
```

0 comments on commit ac3a162

Please sign in to comment.