A Vite plugin (v1.0.3, stable) that seamlessly integrates Neutralinojs with Vite by automatically injecting the __neutralino_globals.js script into index.html. In development it discovers the Neutralinojs backend port from .tmp/auth_info.json and connects; in production it sets the correct script path. Zero-config, TypeScript types included, supports custom root paths. Differentiator: automatic port/connection handling compared to manual Neutralino integration.
npm install vite-plugin-neutralinoVerified import paths — ran on the pinned version, not inferred.
Add neutralino() to Vite config; zero config works for default Neutralino project structure.
Call as neutralino() or neutralino({ rootPath: 'path' }).Start Neutralinojs first (neu run) then Vite dev, or use a concurrent runner.
Ensure Neutralinojs is properly installed and run in the expected environment.
N/A
Install: npm install vite-plugin-neutralino --save-dev
Change to: import neutralino from 'vite-plugin-neutralino'
Ensure you import the default export, not a named export.