1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| import { defineConfig } from 'vite'
| import vue from '@vitejs/plugin-vue'
| import electron from 'vite-plugin-electron'
|
| // https://vitejs.dev/config/
| export default defineConfig({
| plugins: [
| vue(),
| electron({
| // 主进程入口文件
| entry: './src/background.js'
| })
| ],
| /*开发服务器选项*/
| server: {
| // 端口
| port: 3000,
| }
| })
|
|