[Vuejs]-WebPack hot reload with Vue.js and .NET MVC

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

Medium: https://medium.com/@danijelhdev/multi-page-net-core-with-vue-js-typescript-vuex-vue-router-bulma-sass-and-webpack-4-efc7de83fea4

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"));
  });

Leave a comment