Robinfr / electron-react-typescript

Electron boilerplate with React, Redux, and TypeScript
MIT License
432 stars 85 forks source link

feat: add hmr for main process #25

Closed danutzcodrescu closed 4 years ago

danutzcodrescu commented 4 years ago

This enables hmr for electron in development.

Basically it uses a combination of webpack in watch mode with nodemon and it restarts electron after every change event emitted by webpack.

Robinfr commented 4 years ago

I will take a look when I can. Hopefully this weekend 😄

Robinfr commented 4 years ago

P.S. it doesn't help review that you've changed the entire package.json..

danutzcodrescu commented 4 years ago

Right... Sorry about that. I will delete the pr, revert the commit and start over. Seems like vscode formatted on save the code. I will do it tonight.