chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.99k stars 279 forks source link

Is hot reloading possible? #345

Closed Emobe closed 2 years ago

Emobe commented 2 years ago

Is it possible to setup hot reloading so when JS is updated, it will reload the page instead of having the rebuild the app every time?

mattkol commented 2 years ago

@Emobe

Is this related to this?

"@Emobe I will say it depends. You may have to hook in the "Reload" for "Chromely" to have the complete hot-reload effect. Not something I have tried, but if "Reload" works, it should do what you expect. Howto:Reload - chromelyapps/Chromely#338"

You can also check more info on how C# and JavaScript communicate: https://github.com/chromelyapps/Chromely/issues/332