/nuxt-electron

Nuxt Integration with Electron

Primary LanguageTypeScriptMIT LicenseMIT

nuxt-electron

Integrate Nuxt and Electron

NPM version NPM Downloads

screenshort.png

Install

npm i nuxt-electron electron electron-builder -D

Examples

Usage

nuxt.config.ts

import type { ElectronOptions } from 'nuxt-electron'

export default defineNuxtConfig({
  modules: [
    ['nuxt-electron', <ElectronOptions>{
      include: ['electron'],
    }],
  ],
})

Notes

By default, we force the App to run in SPA mode since we don't need SSR for desktop apps.