chore: update config of vite-plugin-electron

This commit is contained in:
草鞋没号 2022-06-27 10:05:40 +08:00
parent 29e0782ccb
commit 2dcd3b6a88
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ import { join } from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import electron from 'vite-plugin-electron'
import renderer from 'vite-plugin-electron/renderer'
import pkg from './package.json'
rmSync(join(__dirname, 'dist'), { recursive: true, force: true }) // v14.14.0
@ -41,9 +40,9 @@ export default defineConfig({
}
},
},
// Enables use of Node.js API in the Renderer-process
renderer: {},
}),
// Enables use of Node.js API in the Renderer-process
renderer(),
],
server: {
host: pkg.env.VITE_DEV_SERVER_HOST,