Skip to content
A utility module that helps you work with electron inside nuxt.
Branch: master
Clone or download
Latest commit f38250e Aug 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib deps update Aug 5, 2018
.editorconfig Added LICENSE and Linting Apr 27, 2018
.eslintrc Added LICENSE and Linting Apr 27, 2018
.gitignore Added LICENSE and Linting Apr 27, 2018
CHANGELOG.md chore(release): 0.1.10 Aug 5, 2018
LICENSE Added LICENSE and Linting Apr 27, 2018
README.md readme.md update May 4, 2018
package-lock.json chore(release): 0.1.10 Aug 5, 2018
package.json

README.md



Dependencies Status Dev Dependencies Status Peer Dependencies Status Downloads Version License Chat on discord

nuxtjs-electron

This is a utility module that helps you work with electron inside nuxt.

Features

  • Automagically starts/restarts electron when changes are made
  • Seamless integration with nuxt build/generate

Setup

  • Add nuxtjs-electron dependency using yarn or npm to your project
  • Add nuxtjs-electron to modules section of nuxt.config.js
  modules: [
    ['@nuxtjs/electron', {
      main: 'main.js',
      build: {
        warnings: false,
        babel: {
            presets: [ ['env', {'targets': { 'node': 7 }, 'useBuiltIns': true }] ],
            plugins: ['add-module-exports']
        },
        extend(config, options, nuxt) {
          // extend webpack config
        }
      }
    }],
  ]

Options

main - Entry point for electron main

  • Default: main.js

build.warnings - hide webpack warnings

  • Default: true

build.babel - babel-loader config

  • Default: { presets: [ ['env', {'targets': { 'node': 7 }, 'useBuiltIns': true }] ], plugins: ['add-module-exports'] }

build.extend(config, options, nuxt) - webpack config

  • @config: webpack config object
  • @options: module options object
  • @nuxt: nuxt.options object
You can’t perform that action at this time.