vite [command]

Native ESM-powered web dev build tool

Arguments

NameDescription
commandfolders

Subcommands

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

Options

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