title: electron package: reduce the package size
body: <p>I made a simple <a href="https://electronjs.org/" rel="noreferrer">Electron</a> app:</p>
  
  <p><em>main.js</em></p>
  
  <pre><code>const {app, BrowserWindow} = require('electron')
  const path = require('path')
  const url = require('url')
  
  let win
  
  function createWindow () {
    win = new BrowserWindow({
      width: 800, 
      height: 600, 
      icon: path.join(__dirname, 'icon.ico')
    })
  
    win.maximize();
  
    win.loadURL('https://stackoverflow.com/', {"extraHeaders" : "pragma: no-cache\n"});
  
    win.on('closed', () =&gt; {
      win = null
    })
  }
  
  app.on('ready', createWindow)
  
  app.on('browser-window-created',function(e,window) {
      window.setMenu(null);
  });
  
  app.on('window-all-closed', () =&gt; {
    if (process.platform !== 'darwin') {
      app.quit()
    }
  })
  
  app.on('activate', () =&gt; {
    if (win === null) {
      createWindow()
    }
  })
  </code></pre>
  
  <p><em>package.json</em></p>
  
  <pre><code>{
    "name": "test",
    "version": "1.0.0",
    "main": "main.js",
    "build": {
      "appId": "com.test.app",
      "copyright": "test",
      "productName": "test"
    },
    "devDependencies": {
      "electron": "1.7.9",
      "electron-builder": "^19.46.4",
      "electron-packager": "^10.1.0"
    }
  }
  </code></pre>
  
  <p>with <a href="https://github.com/electron-userland/electron-packager" rel="noreferrer">electron-packager</a> i have builded the package to release:</p>
  
  <pre><code>electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --prune=true --out=release-builds
  </code></pre>
  
  <p>the total size of the builded package is <strong>107 MB</strong>.</p>
  
  <p>Anyone have tips to reduce the size of the package?</p>