npm start. All checks for isDev returns true. isDev check, used for checking whether app is running in Development environment, returns true even when starting the app through npm start. It should return true only in npm start dev. Whatever script you run, if it's in development mode, isDev will return true. Give it a read - https://github.com/sindresorhus/electron-is-dev
How are we determining if it's in development mode? Shouldn't for npm start isDev return 'false'?
I think you misunderstand what it means when you are running app in development vs production/packaged app.
In electron, this is how we decide whether the app is running in dev or prod -
electron . = npm start
Most helpful comment
I think you misunderstand what it means when you are running app in development vs production/packaged app.