Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
nuxt-electron
Advanced tools
Integrate Nuxt and Electron
# Using pnpm
pnpm add -D nuxt-electron vite-electron-plugin electron electron-builder
# Using yarn
yarn add --dev nuxt-electron vite-electron-plugin electron electron-builder
# Using npm
npm install --save-dev nuxt-electron vite-electron-plugin electron electron-builder
nuxt-electron
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-electron',
],
})
That's it! You can now use Electron in your Nuxt app ✨
Let's use the official nuxt-starter-v3 template as an example
+ ├─┬ electron
+ │ └── main.ts
├─┬ public
│ └── favicon.ico
├── .gitignore
├── .npmrc
├── index.html
├── app.vue
├── nuxt.config.ts
├── package.json
├── README.md
└── tsconfig.json
This is based on the
vite-electron-plugin
, see the Documents for more detailed options
Here is the default nuxt-electron
options
export default defineNuxtConfig({
modules: [
'nuxt-electron'
],
electron: {
include: ['electron'],
outDir: 'dist-electron',
},
})
By default, we force the App to run in SPA mode since we don't need SSR for desktop apps
0.4.1 (2023-02-18)
FAQs
Nuxt Integration with Electron
The npm package nuxt-electron receives a total of 432 weekly downloads. As such, nuxt-electron popularity was classified as not popular.
We found that nuxt-electron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.