The Electron serve (cordova-serve-electron) does not serve from the dev server, but instead serves from the production files in www which are generated from the cordova-prepare command. These files are built without a platform specified, so there isn't any way to have Electron specific code run either.
The Electron serve (
cordova-serve-electron
) does not serve from the dev server, but instead serves from the production files inwww
which are generated from thecordova-prepare
command. These files are built without a platform specified, so there isn't any way to have Electron specific code run either.