vite [root]

Native ESM-powered web dev build tool

Arguments

NameDescription
rootfolders

Subcommands

NameDescription
buildBuild for production
optimizePre-bundle dependencies
previewLocally preview the production build

Options

NameDescription
-h, --help
  • Persistent ⚖
--host [host]Specify the hostname
--port <port>Specify the port
--httpsUse TLS + HTTP/2
--open [browser]Open browser on startup
--corsEnable CORS
--strictPortExit if the port is already in use
--forceFor the optimizer to re-bundle
-c, --config <file>
  • Persistent ⚖
--base <path>
  • Persistent ⚖
-l, --logLevel <level>
  • Persistent ⚖
--clearScreen
  • Persistent ⚖
-d, --debug [feat]
  • Persistent ⚖
-f, --filter <filter>
  • Persistent ⚖
-m, --mode <mode>
  • Persistent ⚖
-v, --versionDisplay version number