Shrink Electron bundle size by lots of MBs!

This commit is contained in:
Feross Aboukhadijeh
2016-03-10 18:48:08 -08:00
parent 8d74d00449
commit c0cb19fb9f
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ var all = {
// Pattern which specifies which files to ignore when copying files to create the
// package(s).
ignore: /^\/(dist|static\/screenshot.png)$/,
ignore: /^\/dist|\/(appveyor.yml|AUTHORS|CONTRIBUTORS|bench|benchmark|benchmark\.js|bin|bower\.json|component\.json|coverage|doc|docs|docs\.mli|dragdrop\.min\.js|example|examples|example\.html|example\.js|externs|ipaddr\.min\.js|Makefile|min|minimist|perf|rusha|simplepeer\.min\.js|simplewebsocket\.min\.js|static\/screenshot\.png|test|tests|test\.js|tests\.js|webtorrent\.min\.js|ws|\.[^\/]*|.*\.md|.*\.markdown)$/,
// The application name.
name: config.APP_NAME,

View File

@@ -49,7 +49,7 @@
"scripts": {
"cleanup": "node ./bin/cleanup.js",
"debug": "DEBUG=* electron .",
"package": "node ./bin/package.js",
"package": "npm prune && npm dedupe && node ./bin/package.js",
"start": "electron .",
"test": "standard",
"update-authors": "./bin/update-authors.sh"