Skip to content

feat: migrate project to electron-vite structure and update configurations#631

Draft
chengcheng84 wants to merge 6 commits into
docmirror:masterfrom
chengcheng84:feat/vite
Draft

feat: migrate project to electron-vite structure and update configurations#631
chengcheng84 wants to merge 6 commits into
docmirror:masterfrom
chengcheng84:feat/vite

Conversation

@chengcheng84
Copy link
Copy Markdown
Contributor

WIP

chengcheng84 and others added 6 commits May 16, 2026 12:08
- Restructure directories to follow electron-vite conventions
  - src/background.js → src/main/index.js
  - src/preload.js → src/preload/index.js
  - src/view/ → src/renderer/src/
  - src/bridge/ → src/main/bridge/ and src/renderer/src/bridge/
- Migrate config from vite.config.js to electron.vite.config.mjs
- Change output directory from dist/ to out/
- Enable preload script with contextBridge for secure electron API exposure
- Update renderer process to use window.electron for API access
- Configure automatic copying of mitmproxy.js to output directory

BREAKING CHANGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant