Vite Config Playground

The spec plate at Dodi’s workshop: set alias, base, outDir, define, the port and a plugin’s enforce, see the vite.config.js it writes and what Vite 8 does…

Why it matters

Nearly every modern frontend project uses Vite. One config line can break @/ imports, make a site in a subfolder lose every script, stop a build over one define value, or leave a plugin quietly doing nothing. Knowing each line means reading the error, not copying someone else’s config.

The key idea

A Vite config is rules, and every rule has an order

Common mistakes

Try it in this playground