Support index.js module resolution at startup of Electron.
This commit is contained in:
parent
d7cf460918
commit
7a23add23b
2 changed files with 7 additions and 1 deletions
|
@ -67,6 +67,9 @@ like this:
|
|||
}
|
||||
```
|
||||
|
||||
__Note__: If the `main` field is not present in `package.json`, Electron will
|
||||
attempt to load an `index.js`.
|
||||
|
||||
The `main.js` should create windows and handle system events, a typical
|
||||
example being:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue