You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
Any modules required within the scope of app/src/main.js will be bundled with webpack for the renderer process only. Modules required in app/electron.js will not work in production, after making a build. There's currently no plans to support bundling the main process at the moment (more info).
Looking to bring electron-builder support soon, which should make external modules for main process a lot easier to manage. Not many boilerplates handle this well so there is some pioneering to do since webpack is involved. Thanks for understanding.
Describe the issue / bug.
Can't use npm modules inside electron.js. (socket.io for example)
I know the
node_modules
are removed in the final build, but they seem to work only when included inside the Vue instance.Is there some way i can still
require
these inelectron.js
?How can I reproduce this problem?
/app/electron.js
If visual, provide a screenshot.
Tell me about your development environment.
The text was updated successfully, but these errors were encountered: