Package Exports
- electron-is-dev
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (electron-is-dev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
electron-is-dev
Check if Electron is running in development
Useful for enabling debug features only during development.
Install
$ npm install --save electron-is-dev
Usage
const isDev = require('electron-is-dev');
if (isDev) {
console.log('Running in development');
} else {
console.log('Running in production');
}
Related
- electron-debug - Adds useful debug features to your Electron app
License
MIT © Sindre Sorhus