chore: update config of vite-plugin-electron
This commit is contained in:
parent
29e0782ccb
commit
2dcd3b6a88
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue