electron-react-typescript icon indicating copy to clipboard operation
electron-react-typescript copied to clipboard

Add auto reload to main part

Open okoskimi opened this issue 5 years ago • 2 comments

Hi,

I was looking for an electron-with-react-and-typescript template and yours looks very good. It doesn't support automatic reload for the main part after code changes though, so I created a patch for that. It uses the nodemon-webpack-plugin to automatically restart electron after changes in the main part.

Caveat: I'm new to electron, so I can't rule out unforeseen side effects, but as far as I could tell the patch works as desired.

BR, --Oskari

okoskimi avatar Mar 26 '20 22:03 okoskimi

Oops, I didn't realize there was already an open pull request for the same thing. Should have looked beforehand, but it was such a small change, what were the odds... Anyway, the solutions are similar but not identical, so interesting to compare at least.

okoskimi avatar Mar 26 '20 22:03 okoskimi

@okoskimi I personally find your solution cleaner than mine.

danutzcodrescu avatar Sep 18 '20 14:09 danutzcodrescu