pack: change the electron-builder setting to allow dynamic values to be added and move the folder location

This commit is contained in:
leejooy96 committed 2023-09-26 10:07:12 +09:00
1 parent 1fca9b3a81
commit f22dbcf775
9 files changed
+1115 -715

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ $ npm run build
## Reduce bundle size by excluding development files
You can exclude files you don't need at build time by adding a file pattern to the files property of `electron-builder.json5`. This will save bundle capacity.
You can exclude files you don't need at build time by adding a file pattern to the files property of `buildAssets/builder/config.ts`. This will save bundle capacity.
Below is an unnecessary `node_modules` file pattern that can further save bundles. Depending on the project, using the rules below may cause problems, so please review it before using.
+2 -1
View File
@@ -10,6 +10,8 @@
│ └─ FUNDING.yml
├─ .vscode - Common project configuration files used by Visual Studio Code IDE
├─ buildAssets/ - Package resource (icon, logo, etc.) file used for Electron build
│ └─ builder/
│ │ │ └─ config.ts - `electron-builder` dynamic configuration file
│ └─ icons/
├─ dist/ - Output directory used to build the package
├─ docs/ - Project documents (optionally enabled)
@@ -53,7 +55,6 @@
├─ .prettierignore - List of files to disable Prettier file formatting
├─ .prettierrc - Prettier rule configurations
├─ CODE_OF_CONDUCT.md - Files used only on GitHub
├─ electron-builder.json5
├─ LICENSE - Project license file
├─ package.json - NodeJS package configurations
├─ package-lock.json