Closed rgbaman closed 2 years ago
In fact I've just managed to find a solution by running:
ionic build
,npx cap copy @capacitor-community/electron
,npx cap open @capacitor-community/electron
I assumed it would generate the build as part of the open
command as per the command line output:
ℹ Opening Electron platform: start 🚀
ℹ Opening Electron platform: builing electron app
⠴ Opening Electron platform: running electron app
Nope, this is the correct behavior just like other Capacitor platforms. The build message you are seeing for open
is part of compiling the actual electron project that your web app gets copied into, it does things like plugin loading and TS -> JS of the electron project files.
Describe the bug When changing/adding code, the changes aren't reflected within the app when you run
npx cap open @capacitor-community/electron
. I have needed to remove the electron folder and re-add it to see any changes.To Reproduce Steps to reproduce the behavior:
npx cap add @capacitor-community/electron
to add the Electron folder,npx cap open @capacitor-community/electron
,npx cap open @capacitor-community/electron
.Expected behavior The Electron app to reflect the new changes.
Desktop (please complete the following information):