Livereload for Ionic React app
See original GitHub issueIs the livereload for this electron platform currently possible?
I have an Ionic React app. I’m trying calling this command from project root folder:
ionic cap run @capacitor-community/electron -l
It first tries to add the electron platform again:
capacitor add @capacitor-community/electron
which fails with Error: Electron platform already exists.
but continues with build process, so in my case these steps:
react-scripts start
capacitor copy @capacitor-community/electron
capacitor open @capacitor-community/electron
So in the end, it opens the electron window, but the content displayed is outdated - actually an old build I made in the past by manually doing
ionic build && npx cap copy
The content is not live-reloaded.
Am I doing something wrong or livereload is not available for electron?
Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top GitHub Comments
Currently no, live reload does not work with electron, but its a good idea for a future release. 👍
Can you give me the steps for live reload ??