Introduction
Complete default configuration values for ee-bin. User-provided config from ./cmd/bin.js is deep-merged on top of these defaults, so user values always override corresponding default fields.
See also:Configuration Types | bin CLI
dev
dev.frontend
| Field | Default Value | Description |
|---|---|---|
directory | './frontend' | Frontend directory |
cmd | 'npm' | Command |
args | ['run', 'dev'] | Arguments |
protocol | 'http://' | Frontend dev server protocol |
hostname | 'localhost' | Frontend dev server hostname |
port | 8080 | Frontend dev server port |
indexPath | 'index.html' | Index page filename |
force | false | Force refresh |
sync | false | Sync mode |
dev.electron
| Field | Default Value | Description |
|---|---|---|
directory | './' | Electron directory |
cmd | 'electron' | Command |
args | ['.', '--env=local'] | Arguments |
loadingPage | '/public/html/loading.html' | Loading page path |
watch | false | Watch for file changes |
sync | false | Sync mode |
delay | 1000 | Debounce delay (ms) in watch mode |
build
build.frontend
| Field | Default Value | Description |
|---|---|---|
directory | './frontend' | Frontend directory |
cmd | 'npm' | Command |
args | ['run', 'build'] | Arguments |
build.electron (BundleConfig)
| Field | Default Value | Description |
|---|---|---|
bundleType | 'bundle' | Bundle mode ('bundle' = esbuild single-file, 'copy' = directory copy) |
external | [] | User-defined esbuild external packages |
sourcemap | false | Auto: dev→inline, prod→off |
minify | false | Minify code |
keepNames | false | Preserve function/class names |
drop | [] | Statements to remove |
legalComments | 'none' | License comment handling |
define | {} | Compile-time constants |
copy | [] | Extra files/dirs from electron/ |
format | 'cjs' | Output format |
build.platforms
| Platform Key | Default Command | Default Args |
|---|---|---|
win32 | electron-builder | ['--config=./cmd/builder.json', '-w=nsis', '--ia32'] |
win64 | electron-builder | ['--config=./cmd/builder.json', '-w=nsis', '--x64'] |
win_e | electron-builder | ['--config=./cmd/builder.json', '-w=portable', '--x64'] |
win_7z | electron-builder | ['--config=./cmd/builder.json', '-w=7z', '--x64'] |
mac | electron-builder | ['--config=./cmd/builder-mac.json', '-m'] |
mac_arm64 | electron-builder | ['--config=./cmd/builder-mac-arm64.json', '-m', '--arm64'] |
linux | electron-builder | ['--config=./cmd/builder-linux.json', '-l=deb', '--x64'] |
linux_arm64 | electron-builder | ['--config=./cmd/builder-linux.json', '-l=deb', '--arm64'] |
All platform configs default directory: './'.
move
| Key | Default src | Default dest |
|---|---|---|
frontend_dist | './frontend/dist' | './public/dist' |
start
| Field | Default Value | Description |
|---|---|---|
directory | './' | Directory |
cmd | 'electron' | Command |
args | ['.', '--env=prod'] | Arguments |
encrypt
encrypt.frontend
| Field | Default Value | Description |
|---|---|---|
type | 'none' | Encryption type |
files | ['./public/dist/**/*.js'] | Files to encrypt |
fileExt | ['.js'] | Extensions to process |
cleanFiles | ['./public/dist'] | Dirs to clean after |
specificFiles | [] | Files forced to confusion |
encryptDir | './' | Base directory |
silent | false | Suppress banner |
Frontend confusionOptions defaults:
| Option | Default | Description |
|---|---|---|
compact | true | Remove line breaks |
stringArray | true | Move strings to array |
stringArrayEncoding | ['none'] | No encoding (frontend is performance-sensitive) |
deadCodeInjection | false | No dead code |
stringArrayCallsTransform | true | Transform calls |
numbersToExpressions | true | Replace numbers |
target | 'browser' | Browser runtime |
encrypt.electron
| Field | Default Value | Description |
|---|---|---|
type | 'none' | Encryption type |
files | ['./public/electron/**/*.js'] | Files to encrypt |
fileExt | ['.js'] | Extensions to process |
cleanFiles | ['./public/electron'] | Dirs to clean after |
specificFiles | ['./public/electron/preload/bridge.js'] | Files forced to confusion |
entryFiles | ['./public/electron/main.js'] | Entry files kept as .js |
encryptDir | './' | Base directory |
silent | false | Suppress banner |
Electron confusionOptions defaults:
| Option | Default | Description |
|---|---|---|
compact | true | Remove line breaks |
stringArray | true | Move strings to array |
stringArrayEncoding | ['rc4'] | RC4 encryption (stronger for Electron) |
deadCodeInjection | false | No dead code |
stringArrayCallsTransform | true | Transform calls |
numbersToExpressions | true | Replace numbers |
target | 'node' | Node runtime |
Electron bytecodeOptions defaults:
| Option | Default | Description |
|---|---|---|
electron | true | V8 bytecode for Electron |
exec
Default: {} (empty — user defines custom commands in ./cmd/bin.js)
