RickStrahl / Westwind.AspnetCore.LiveReload

ASP.NET Core Live Reload Middleware that monitors file changes in your project and automatically reloads the browser's active page
Other
473 stars 42 forks source link

Add to Readme: Improve live reload for blazor by disabling linking for debug mode #11

Closed codeclash closed 5 years ago

codeclash commented 5 years ago

Tip: add this, should/could speed up incremental builds:

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <BlazorLinkOnBuild>false</BlazorLinkOnBuild>
</PropertyGroup>

See https://github.com/aspnet/AspNetCore/issues/5456#issuecomment-518631414

RickStrahl commented 5 years ago

Does that work any better? Last I played around with this the reload still was incredibly slow due to the full server reload.

Looking at that thread I'm not sure what I'm looking at in regards to the note you posted here. Can you provide more context (sorry - haven't been keeping up with Blazor recently).

codeclash commented 5 years ago

@RickStrahl I was assuming that disabling linking for debug builds might speed up things a bit (or make re-builds less slow... :-) A shot in the dark to be honest, seemed legit. I'll try with and without that setting and will let you know if it has any perceivable impact.