-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defualt ignore files config could not exclude node_modules in packing progress #8385
Comments
The |
Could I consider that all projects need to be bundled? Otherwise the app will contain the electron package in node_modules, it's about 256MB and it's duplicated and not used. |
If you want the size to be reduced, I'd recommend removing the unnecessary locales for electron. Here's how I patched electron-builder to only include the English locale unless specified otherwise. This resulted in a 38MB unpackaged app size decrease. |
Electron package in node modules is NOT a duplicate. It provides bindings to call the electron application through js. If you remove them, you won't be able to call the ABI methods through JS like you do. For example creating a new BrowserWindow. The other electron package you're referring to provides the ABI through which the node js electron package can call methods that have been defined in the ABI. |
This should already be supported via |
I have tried ignore node_modules directly, nothing happened. |
I am trying to exclude the entire
Even after this, my asar file contains things like babel transpiler. Is there no way to completely avoid |
This was my config when I was bundling all dependencies as part of the app files and was successfully able to exclude node_modules. Does it happen to work for you?
|
I found my
app.asar
is too large, so I extracted it and found that it included fully node_modulesThe problem config:
expected:
Add node_modules excluding by handle:
The text was updated successfully, but these errors were encountered: