Describe the bug
When I make new css file and I want to link to this file in .cshtml file, it works in development version but not in published version
To Reproduce
Steps to reproduce the behavior:
Download and run ViteNET.MVC example from this repo
Create new random .css file with some random content like * { outline: 1px solid red; }
Add this file to rollupOptions in vite.config.ts to the input
Add link to this css file in _Layout.cshtml like <link rel="stylesheet" vite-href="~/test.css" asp-append-version="true" />
Expected behavior
CSS File should work in Development mode and also after publish (with dotnet) in published version
Screenshots
When running published version:
Publishing:
Device (please complete the following information):
OS: Windows 11
IDE/Editor: Visual Studio 2022
Additional context
With version 2.0.0 works without any problems.
Link to CSS file is missing when running published version
Describe the bug When I make new css file and I want to link to this file in .cshtml file, it works in development version but not in published version
To Reproduce Steps to reproduce the behavior:
* { outline: 1px solid red; }
<link rel="stylesheet" vite-href="~/test.css" asp-append-version="true" />
Expected behavior CSS File should work in Development mode and also after publish (with dotnet) in published version
Screenshots When running published version:
Publishing:
Device (please complete the following information):
Additional context