nuxt-electron
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -8,4 +8,23 @@ import { type Configuration } from 'vite-electron-plugin'; | ||
renderer?: Parameters<typeof import('vite-plugin-electron-renderer').default>[0]; | ||
/** | ||
* nuxt-electron will modify some options by default | ||
* | ||
* ```js | ||
* export default defineNuxtConfig({ | ||
* ssr: false, | ||
* app: { | ||
* buildAssetsDir: '/', | ||
* baseURL: './', | ||
* }, | ||
* runtimeConfig: { | ||
* app: { | ||
* baseURL: './', | ||
* }, | ||
* }, | ||
* }) | ||
* ``` | ||
*/ | ||
disableDefaultOptions?: boolean; | ||
} | ||
declare const _default: NuxtModule<ElectronOptions>; | ||
export default _default; |
{ | ||
"name": "nuxt-electron", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Nuxt Integration with Electron", | ||
@@ -41,9 +41,9 @@ "main": "./dist/index.cjs", | ||
"devDependencies": { | ||
"@types/node": "^18.13.0", | ||
"esbuild": "^0.17.8", | ||
"nuxt": "^3.2.0", | ||
"@types/node": "^18.15.11", | ||
"esbuild": "^0.17.14", | ||
"nuxt": "^3.2.2", | ||
"typescript": "^4.9.5", | ||
"vite": "^4.1.1", | ||
"vite-electron-plugin": "^0.7.4", | ||
"vite-plugin-electron-renderer": "^0.12.1" | ||
"vite": "^4.1.4", | ||
"vite-electron-plugin": "latest", | ||
"vite-plugin-electron-renderer": "latest" | ||
}, | ||
@@ -50,0 +50,0 @@ "files": [ |
@@ -66,4 +66,2 @@ <p align="center"> | ||
> This is based on the `vite-electron-plugin`, see the **[Documents](https://github.com/electron-vite/vite-electron-plugin#configuration)** for more detailed options | ||
Here is the default `electron` options | ||
@@ -83,16 +81,34 @@ | ||
Use Node.js in Renderer process | ||
Full types definition | ||
> This is based on the `vite-electron-plugin`, see the **[Documents](https://github.com/electron-vite/vite-electron-plugin#configuration)** for more detailed options | ||
```ts | ||
export default defineNuxtConfig({ | ||
modules: [ | ||
'nuxt-electron', | ||
], | ||
electron: { | ||
/** | ||
* @see https://github.com/electron-vite/vite-plugin-electron-renderer | ||
*/ | ||
renderer: {}, | ||
}, | ||
}) | ||
import type { Configuration } from 'vite-electron-plugin' | ||
export interface ElectronOptions extends Partial<Configuration> { | ||
/** | ||
* @see https://github.com/electron-vite/vite-plugin-electron-renderer | ||
*/ | ||
renderer?: Parameters<typeof import('vite-plugin-electron-renderer').default>[0] | ||
/** | ||
* nuxt-electron will modify some options by default | ||
* | ||
* ```js | ||
* export default defineNuxtConfig({ | ||
* ssr: false, | ||
* app: { | ||
* buildAssetsDir: '/', | ||
* baseURL: './', | ||
* }, | ||
* runtimeConfig: { | ||
* app: { | ||
* baseURL: './', | ||
* }, | ||
* }, | ||
* }) | ||
* ``` | ||
*/ | ||
disableDefaultOptions?: boolean | ||
} | ||
``` | ||
@@ -127,2 +143,4 @@ | ||
If you want to fully customize the default behavior, you can disable it by `disableDefaultOptions` | ||
<!-- Badges --> | ||
@@ -129,0 +147,0 @@ [npm-version-src]: https://img.shields.io/npm/v/nuxt-electron/latest.svg?style=flat&colorA=18181B&colorB=28CF8D |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15656
230
152