0👍
Hot reload cannot work if you physically write files to the disk.
I created this template that combines .NET MVC with Vue.js. You can use the entire Vue ecosystem but if you don’t want it on any page you can just opt out.
GitHub: https://github.com/danijelh/aspnetcore-vue-typescript-template
You can use it as an example or starting point.
0👍
add this line to startup.cs
app.Run(async (context) =>
{
context.Response.ContentType = "text/html";
await context.Response.SendFileAsync(Path.Combine(env.WebRootPath, "index.html"));
});
- [Vuejs]-How to write router in Vue?
- [Vuejs]-Updated Vue to 3.2.3. vue –version shows as 3.0.1 still… How to fix?
Source:stackexchange.com