Function: isDev()
isDev():
boolean
Defined in: electron/electronUtils.ts:45
Determines if the Electron app is running in development mode.
Returns
boolean
true if running in Electron development mode (unpackaged and
NODE_ENV=development), otherwise false.
Remarks
This function returns true only if both:
- The 
NODE_ENVenvironment variable is set to"development"(as determined byisDevelopment()), and - The Electron app is not packaged (app.isPackagedisfalse). 
Use this to distinguish between development and production builds in Electron-specific code, such as enabling hot reload or verbose logging only during development.
Example
if (isDev()) {
    logger.debug("Running in development mode - enabling debug features");
    // Enable hot reload, detailed logging, etc.
} else {
    logger.info("Running in production mode");
    // Optimize for performance, reduce logging
}