forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
34
electron/node_modules/electron-is-dev/readme.md
generated
vendored
Normal file
34
electron/node_modules/electron-is-dev/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# electron-is-dev
|
||||
|
||||
> Check if [Electron](https://electronjs.org) is running in development
|
||||
|
||||
Useful for enabling debug features only during development.
|
||||
|
||||
This package must be used from the Electron main process.
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install electron-is-dev
|
||||
```
|
||||
|
||||
*Requires Electron 3 or later.*
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const isDev = require('electron-is-dev');
|
||||
|
||||
if (isDev) {
|
||||
console.log('Running in development');
|
||||
} else {
|
||||
console.log('Running in production');
|
||||
}
|
||||
```
|
||||
|
||||
You can force development mode by setting the `ELECTRON_IS_DEV` environment variable to `1`.
|
||||
|
||||
## Related
|
||||
|
||||
- [electron-util](https://github.com/sindresorhus/electron-util) - Useful utilities for developing Electron apps
|
||||
- [electron-debug](https://github.com/sindresorhus/electron-debug) - Adds useful debug features to your Electron app
|
||||
Loading…
Add table
Add a link
Reference in a new issue