Shrink Electron bundle size by lots of MBs!
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user