From 5bc70c35e7b5d98fc3f1d212bc331e428ba6f2e4 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 6 Dec 2017 12:44:16 -0800 Subject: [PATCH] Fix ASAR filter: takes ASAR size down by ~200MB (#1869) I knew the emoji stuff was huge, just didn't realize that our filtering for the ASAR was broken so none of our rules applied! --- package.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 36a1455b9c5..07c5a358b3f 100644 --- a/package.json +++ b/package.json @@ -137,17 +137,25 @@ "fonts/*", "build/assets", "node_modules/**", + "!node_modules/emoji-panel/dist/*", + "!node_modules/emoji-panel/lib/emoji-panel-emojione-*.css", + "!node_modules/emoji-panel/lib/emoji-panel-google-*.css", + "!node_modules/emoji-panel/lib/emoji-panel-twitter-*.css", + "!node_modules/emoji-panel/lib/emoji-panel-apple-{16,20,64}.css", + "!node_modules/emoji-datasource/emoji_pretty.json", "!node_modules/emoji-datasource/*.png", + "!node_modules/emoji-datasource-apple/emoji_pretty.json", "!node_modules/emoji-datasource-apple/img/apple/{sheets-128,sheets-256}/*.png", "!node_modules/emoji-datasource-apple/img/apple/sheets/{16,20,32}.png", "!node_modules/spellchecker/vendor/hunspell/**/*", "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}", "!**/node_modules/.bin", "!**/node_modules/*/build/**", - "**/node_modules/*/build/**/*.node", "!**/*.{o,hprof,orig,pyc,pyo,rbc}", "!**/._*", - "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}" + "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}", + "node_modules/spellchecker/build/Release/*.node", + "node_modules/websocket/build/Release/*.node" ] }, "dependencies": {