[!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.
Install the plugin using the neu CLI:
neu plugins --add neutralinojs-plugin-vite
This 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 create
This will start an interactive wizard that guides you through the project setup:
neutralinojs-vite-app)neu vite dev)
To start the Vite development server with NeutralinoJS:
neu vite dev
This command will:
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 insidevite-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:
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/"
}
}
}
This project is licensed under the MIT License.