Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/probablykasper/vite-plugin-electron-x. A Vite plugin for bundling main.ts, preload.ts and running Electron in development
···2020Load the Vite dev server in Electron:
2121```js
2222if (process.env.NODE_ENV === "development') {
2323- // vite-plugin-electorn-x automatically provides the DEV_PORT environment variable to Electron
2424- mainWindow.loadURL(`http://localhost:${process.env.DEV_PORT}`)
2323+ // vite-plugin-electorn-x automatically provides the VITE_DEV_SERVER_URL environment variable to Electron
2424+ mainWindow.loadURL(`http://localhost:${process.env.VITE_DEV_SERVER_URL}`)
2525}
2626```
2727