It is a simple method to restart your application.
github.com/valentineus/electron-hot-reload
valentineus/electron-hot-reload