slow using dotnet watch run #1151

Closed
opened 2025-08-09 17:19:04 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rhyek on 12/29/2016

I've set up a small project and so far most everything seems to work fine. My project uses the csproj model and for the frontend I've got Vue running (thanks to some resources I found here and elsewhere). HMR is pretty fast, but I'm not sure how you guys intend for people to run the server during development. I've got it set up to use dotnet watch run so I don't have to restart the server manually after backend code changes. The problem is everytime you do dotnet run, webpack has to set itself up again from scratch, so you can imagine how dotnet watch run feels.

I'm fairly new to node and especially webpack, but a complete noob when it comes to dotnet core + node. I wonder if s there's a way to have dotnet watch run only recompile backend code? I figure I'd have to run webpack in a different process altogether, but I want to keep HMR + server side rendering, so I want to get your insight.

Thank you.

*Originally created by @rhyek on 12/29/2016* I've set up a small project and so far most everything seems to work fine. My project uses the csproj model and for the frontend I've got Vue running (thanks to some resources I found here and elsewhere). HMR is pretty fast, but I'm not sure how you guys intend for people to run the server during development. I've got it set up to use `dotnet watch run` so I don't have to restart the server manually after backend code changes. The problem is everytime you do `dotnet run`, webpack has to set itself up again from scratch, so you can imagine how `dotnet watch run` feels. I'm fairly new to node and especially webpack, but a complete noob when it comes to dotnet core + node. I wonder if s there's a way to have `dotnet watch run` only recompile backend code? I figure I'd have to run webpack in a different process altogether, but I want to keep HMR + server side rendering, so I want to get your insight. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1151
No description provided.