[Vuejs]-How to run asp.net core run and vue js serve in same command window?

0👍

For dotnet MyApp.Web.dll and npm run serve, both command will block the command window process, the following command will not run until you terminate the previous task.

For a workaround, you need to start the npm run serve from Asp.Net Core.

For Asp.Net Core Angular template, there is built-in feature called AngularCliMiddlewareExtensions.

For vue client, you could follow ASP.NET Core Vue CLI Templates to implement VueDevelopmentServerMiddleware.

Here is the source code ASPCoreVueCLITemplates

Leave a comment