Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nurdism/nuxtjs-electron
A utility module that helps you work with electron inside nuxt.
https://github.com/nurdism/nuxtjs-electron
Last synced: about 2 months ago
JSON representation
A utility module that helps you work with electron inside nuxt.
- Host: GitHub
- URL: https://github.com/nurdism/nuxtjs-electron
- Owner: nurdism
- License: mit
- Archived: true
- Created: 2018-04-27T12:58:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T21:03:06.000Z (about 6 years ago)
- Last Synced: 2024-07-04T22:18:33.459Z (3 months ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 13
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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` to `modules` section of `nuxt.config.js`
```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`