Skip to content

Vite+ on Workers

Last updated View as MarkdownAgent setup

Vite+ ↗︎ combines Vite with formatting, linting, type checking, and testing. Use Vite+ with the Cloudflare Vite plugin for new Workers and supported Vite-based apps.

The plugin runs your Worker code in the Workers runtime during development. Vite+ provides the project toolchain through the vp command.

Start a new project

To create a standalone Worker with cf init, follow Deploy your first Worker. Use the generated Vite+ scripts for checks, formatting, and tests alongside cf dev, cf build, and cf deploy.

For a framework application, start with the appropriate framework guide. Preserve framework-specific build steps when adopting Vite+.

Adopt Vite+ in an existing project

Follow the Vite+ migration guide ↗︎ for requirements and migration steps. If your project does not yet use the Cloudflare Vite plugin, follow the plugin setup guide.

Keep your framework scripts and Cloudflare deployment command. Adopting Vite+ does not require changing your Cloudflare configuration format. Preserve existing toolchains during unrelated changes.

Was this helpful?