Not ignoring output directories results in larger bundles
See original GitHub issueI’ve created a simple app that just loads an url with some extra. I only need:
- app
- browser-window
- global-shortcut
- dialog
- fs
- https
- menu
My package.json is really simple:
{
"name": "myapp",
"version": "0.0.1",
"main": "main.js",
"devDependencies": {
"electron-prebuilt": "^0.33.3"
}
}
How is it possible that my bundle osx app is more than 100MB, Linux > 500 and Windows over 1GB? What am I doing wrong?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to exclude directory from getting bundled by Webpack?
Depending on what your folder structure looks like it appears you aren't providing it the right directory location to exclude.
Read more >Setting Up Your Project To Ignore Some Files
Note: a .git/ directory is always ignored by the sync operation, even if not listed in .dominoignore. Using isolated results branches.
Read more >ripgrep/GUIDE.md at master - GitHub
You can disable all ignore-related filtering with the --no-ignore flag. Hidden files and directories can be searched with the --hidden ( -. for...
Read more >dotnet publish command - .NET CLI | Microsoft Learn
The dotnet publish command publishes a .NET project or solution to a directory.
Read more >Configuration - Doxygen Manual
Doxygen will copy the logo to the output directory. ... If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting detailed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m going to guess you have the same problem as #139, that you’ve ended up including your output folder in subsequent electron-packager runs. Try adding it to
--ignore
.~100MB is about right. I just checked my app (Electron 0.26.0):