question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not ignoring output directories results in larger bundles

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
kfranqueirocommented, Sep 28, 2015

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.

2reactions
maleptcommented, Sep 28, 2015

~100MB is about right. I just checked my app (Electron 0.26.0):

$ du -xcsh *
8.7M    content_shell.pak
53M AppFormerlyKnownAsElectron
9.8M    icudtl.dat
2.5M    libffmpegsumo.so
508K    libgcrypt.so.11
16M libnode.so
32K libnotify.so.4
404K    natives_blob.bin
2.4M    resources
908K    snapshot_blob.bin
93M total
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found