nuxtjs-electron
v0.1.10
Published
<p align="center"> <img width="128" src="https://i.imgur.com/sY8LqKi.png"> <br><br> <img src="https://david-dm.org/nurdism/nuxtjs-electron/status.svg" alt="Dependencies Status"> <img src="https://david-dm.org/nurdism/nuxtjs-electron/dev-status.svg
Downloads
36
Readme
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
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
}
}
}],
]
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