You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.平板导税app tax-guidance完成静态界面 |
3 months ago | |
|---|---|---|
| .. | ||
| .vscode | 4 months ago | |
| build | 4 months ago | |
| resources | 4 months ago | |
| src | 3 months ago | |
| temp-asar | 4 months ago | |
| .editorconfig | 4 months ago | |
| .env.development | 4 months ago | |
| .env.production | 4 months ago | |
| .eslintignore | 4 months ago | |
| .eslintrc.cjs | 4 months ago | |
| .gitignore | 4 months ago | |
| .npmrc | 4 months ago | |
| .prettierignore | 4 months ago | |
| .prettierrc.yaml | 4 months ago | |
| README.md | 4 months ago | |
| electron-builder.yml | 4 months ago | |
| electron.vite.config.ts | 4 months ago | |
| package-lock.json | 4 months ago | |
| package.json | 4 months ago | |
| tsconfig.json | 4 months ago | |
| tsconfig.node.json | 4 months ago | |
| tsconfig.web.json | 4 months ago | |
| yarn.lock | 4 months ago | |
README.md
electron-app
An Electron application with Vue3 and TypeScript
Features
- 💡 Optimize asset handling
- 🚀 Fast HMR for renderer processes
- 🔥 Hot reloading for main process and preload scripts
- 🔌 Easy to debug
- 🔒 Compile to v8 bytecode to protect source code
Getting Started
Read documentation for more details.
- Configuring
- Development
- Asset Handling
- HMR & Hot Reloading
- Debugging
- Source code protection
- Distribution
- Troubleshooting
You can also use the create-electron tool to scaffold your project for other frameworks (e.g. React, Svelte or Solid).
Recommended IDE Setup
Project Setup
Install
$ npm install
Development
$ npm run dev
Build
# For windows
$ npm run build:win
# For macOS
$ npm run build:mac
# For Linux
$ npm run build:linux
Examples
- electron-vite-bytecode-example, source code protection
- electron-vite-decorator-example, typescipt decorator
- electron-vite-worker-example, worker and fork
Configuration
The API base URL can be configured in two ways:
- Production Build: Set
VITE_API_BASE_URLin.env.productionbefore building - Runtime Configuration: Modify
src/renderer/src/utils/config.jsonafter installation:{ "apiBaseUrl": "http://your-api-server:port/path" }
The application will first check the config file, then fall back to the environment variable.