Vite config generator

← All tools

Pick a framework preset and options → a commented Vite config plusnpm create vite@latest / plugin install commands. Astro is special — it wraps Vite internally.

~~~
Framework preset
TypeScript
Extras

Scaffold

~~~

About this tool

Vite is the dev server and bundler behind React, Vue, Svelte, and many other stacks. A good vite.config.ts sets plugins, path aliases, dev proxy rules, and build output — but the docs scatter options across many pages.

Pick a framework preset and toggles here to get a commented starting config plus npm create vite@latest and plugin install commands. Optional blocks cover @ path aliases, an/api proxy, Vitest, vendor chunk splitting, andimport.meta.env notes.

Astro projects configure Vite through astro.config.mjs, not a standalone vite.config.ts — select the Astro preset for that reminder.

~~~

Read more