Caution
This plugin is still under active development. Future updates may introduce breaking changes or compatibility issues.
A neu-cli plugin that integrates Vite into your NeutralinoJS projects. Create and develop lightweight, cross-platform desktop applications using your favorite frontend framework with hot module replacement (HMR) support.
- 🚀 Fast Development - Vite's lightning-fast HMR for instant feedback
- 🎨 Multiple Frameworks - Support for React, Vue, Svelte, Solid, Preact, Lit, Qwik, and SvelteKit
- 📦 Easy Setup - Interactive project creation wizard
- 🔧 TypeScript Support - First-class TypeScript support for all frameworks
Install the plugin using the neu CLI:
neu plugins --add neutralinojs-plugin-viteThis plugin extends the neu CLI with the vite command. All commands are executed using:
neu vite <command>To create a new NeutralinoJS project with Vite integration, run:
neu vite createThis will start an interactive wizard that guides you through the project setup:
- Project name - Enter your project name (default:
neutralinojs-vite-app) - Framework selection - Choose from available frameworks:
- React - TypeScript, JavaScript, SWC, React Compiler variants
- Vue - TypeScript or JavaScript
- Svelte - TypeScript, JavaScript, or SvelteKit
- Solid - TypeScript or JavaScript
- Preact - TypeScript or JavaScript
- Lit - TypeScript or JavaScript
- Qwik - TypeScript or JavaScript
- Install dependencies - Optionally install dependencies after creation
- Run the app - Optionally run the application after creation (like
neu vite dev)
To start the Vite development server with NeutralinoJS:
neu vite devThis command will:
- Verify your NeutralinoJS setup
- Start the Vite development server with HMR
- Launch the NeutralinoJS application window
After creating a project, you'll have the following structure:
my-project/
├── neutralino.config.json # NeutralinoJS configuration
├── vite-src/ # Vite project source
│ ├── src/ # Your application source code
│ ├── public/ # Static assets
│ ├── dist/ # Built files (generated)
│ └── vite.config.ts # Vite configuration
└── extensions/ # NeutralinoJS extensions
Note
The contents inside vite-src/ may vary depending on the framework you selected during project creation.
You can customize Vite by editing the vite.config.ts (or vite.config.js) file inside the vite-src/ directory.
For more details, refer to the official Vite documentation.
Configure your NeutralinoJS application by editing the neutralino.config.json file in your project root. This file controls:
- Window properties (size, title, resizable, etc.)
- Native API permissions
- Application metadata
- Build settings
For a complete list of options, check the official NeutralinoJS documentation.
The plugin adds a vite section under cli in neutralino.config.json:
{
"cli": {
"vite": {
"projectPath": "/vite-src/"
}
}
}- Node.js >= 16
- neu-cli installed globally
This project is licensed under the MIT License.

