When I use these with a .js module using vite-href I get the following warning
warn: Vite.AspNetCore.TagHelpers.ViteTagHelper[0]
The entry 'js/main.js' doesn't have CSS chunks
My thought is that the logic in the ViteTagHelper needs to be expanded to handle these scenarios or it needs to be less strict about what it's validating.
Hi, sorry for the delay.
I added a validation for link tags with 4a2a47a31e6cdf471ab25f4f442ece3dca277941. For non-stylesheet links, the script url will be used instead of CSS url.
I have the following in my
<head>
and at the end of my
<body>
These preload keywords are used to inform the browser to start downloading an asset even before it is used.
When I use these with a
.js
module usingvite-href
I get the following warningMy thought is that the logic in the ViteTagHelper needs to be expanded to handle these scenarios or it needs to be less strict about what it's validating.