Vue 3
How to create an Electron app with Vue and Electron Forge
Setting up the app
npx create-electron-app@latest my-vue-app --template=viteAdding dependencies
npm install vue
npm install --save-dev @vitejs/plugin-vueIntegrating Vue 3 code
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World!</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/renderer.js"></script>
</body>
</html><template>
<h1>💖 Hello World!</h1>
<p>Welcome to your Electron application.</p>
</template>
<script setup>
console.log('👋 This message is being logged by "App.vue", included via Vite');
</script>Last updated
Was this helpful?