mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Support index.js module resolution at startup of Electron.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user