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
- Add
nuxtjs-electron
dependency using yarn or npm to your project - Add
nuxtjs-electron
tomodules
section ofnuxt.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
}
}
}],
]
- Default:
main.js
- Default: true
- Default:
{ presets: [ ['env', {'targets': { 'node': 7 }, 'useBuiltIns': true }] ], plugins: ['add-module-exports'] }
- @config:
webpack config object
- @options:
module options object
- @nuxt:
nuxt.options object