Vite config as JSON

A JSON representation of Vite build tools config.

Open in JSON Formatter

About this format

While normally JavaScript, Vite configurations can be represented as JSON. It controls dev servers and build outputs.

Example Data

{
  "server": {
    "port": 3000,
    "strictPort": true
  },
  "build": {
    "outDir": "dist",
    "sourcemap": true
  }
}

When to use Vite config as JSON

  • Configuring dev server ports
  • Setting up build maps
  • Defining asset paths