@nrwl/vite

The Nx plugin for Vite and Vitest.

Early release plugin

This Nx plugin is in active development and may not be ready for real-world use. The planned release date for the stable plugin is December, 2022.

Why should you use this plugin?

  • Instant dev server start
  • Lightning fast Hot-Module Reloading
  • Fast builds using Vite.
  • Vite-powered tests with smart and instant watch mode

Setting up Vite

To create a new workspace, run npx create-nx-workspace@latest --preset=npm.

To add the Vite plugin to an existing workspace, run the following:

npm install -D @nrwl/vite

Package reference

Here is a list of all the executors and generators available from this package.

Guides

    Executors

    Generators

    • initInternal

      Add Vite configuration to the workspace.