Deluze / electron-vue-template

Simple Vue3 + Electron starter template in TypeScript, including ViteJS and Electron Builder
MIT License
579 stars 108 forks source link

for someone who needs to use@electron/remote #52

Closed FanLu1994 closed 4 months ago

FanLu1994 commented 1 year ago
  1. install vite-plugin-electron-renderer npm install vite-plugin-electron-renderer

  2. change vite config

    ...
    import renderer from 'vite-plugin-electron-renderer'
    ...
    const config = defineConfig({
    ...
    plugins: [vuePlugin(),renderer()],
    ...
    })
Deluze commented 4 months ago

Closing this issue as it's a small example that they it's in the readme of vite-plugin-electron-renderer itself. Also not relevant to the template.

I appreciate sharing your findings. Feel free to share this in the discussions tab for others to find :)