I find that the project structure of electron apps would be a lot more clear if the main process file is named main.js, and the preload file named preload.js. Currently, they are both named index.js, which is a bit confusing/unorganized.
This pull request has, for all frameworks:
Changed the names of all main process files from index.js/ts to main.js/ts.
Changed the names of all preload files from index.js/ts to preload.js/ts. (This includes preload.d.ts).
Updated the BrowserWindow's webPreferences.preload option to reflect the name change in the path.
Updated the package.json main file name.
What is the purpose of this pull request?
[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[x] Other
Before submitting the PR, please make sure you do the following
Description
I find that the project structure of electron apps would be a lot more clear if the main process file is named main.js, and the preload file named preload.js. Currently, they are both named index.js, which is a bit confusing/unorganized.
This pull request has, for all frameworks:
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).