Reduce dependency bundle size (#2136)

This commit is contained in:
Felix Häusler 2020-05-31 09:16:32 +02:00 committed by GitHub
parent 9c6526ff87
commit be4e34e6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,14 +9,12 @@ directories:
files: files:
- "dist/electron/**/*" - "dist/electron/**/*"
# Don't bundle these files # Don't bundle these files
- "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}" - "!**/node_modules/**/{CHANGELOG.md,README.md,README,readme.md,readme}"
- "!node_modules/css-b64-images/{draft.png,draft.xcf}" - "!node_modules/css-b64-images/{draft.png,draft.xcf}"
- "!node_modules/dagre-d3-renderer/dist/{dagre-d3.js.map,demo/}" - "!node_modules/dagre-d3-renderer/dist/demo/"
- "!node_modules/dagre-layout/dist/dagre-layout*.js.map"
- "!node_modules/dragula/resources" - "!node_modules/dragula/resources"
- "!node_modules/mermaid/dist/mermaid*.js.map" - "!node_modules/**/*.js.map"
- "!node_modules/terser/dist/bundle.min.js.map" - "!node_modules/**/*.ts.map"
- "!node_modules/vega-lite/build/vega-lite*.js.map"
# Don't bundle build files # Don't bundle build files
- "!node_modules/@felixrieseberg/spellchecker/bin" - "!node_modules/@felixrieseberg/spellchecker/bin"
- "!node_modules/@hfelix/spellchecker/bin" - "!node_modules/@hfelix/spellchecker/bin"
@ -27,10 +25,12 @@ files:
- "!node_modules/fontmanager-redux/bin" - "!node_modules/fontmanager-redux/bin"
- "!node_modules/keyboard-layout/bin" - "!node_modules/keyboard-layout/bin"
- "!node_modules/keytar/bin" - "!node_modules/keytar/bin"
- "!node_modules/vscode-windows-registry/bin" # Don't bundle Linux build files
- "!node_modules/@hfelix/spellchecker/build/Release/hunspell.a"
- "!node_modules/ced/build/Release/compact_enc_det.a"
# Don't bundle Windows build files # Don't bundle Windows build files
- "!node_modules/**/{*.vcxproj,*.vcxproj.filters}" - "!node_modules/**/{*.vcxproj,*.vcxproj.filters}"
- "!node_modules/**/build/Release/{*.lib,*.exp,*.ilk,*.pdb}" - "!node_modules/**/build/Release/{*.lib,*.exp,*.ilk,*.pdb,*.iobj,*.ipdb}"
- "!node_modules/**/build/Release/obj" - "!node_modules/**/build/Release/obj"
- "!node_modules/ced/build/vendor" - "!node_modules/ced/build/vendor"
# Don't bundle LGPL source files # Don't bundle LGPL source files