vite [command]
Native ESM-powered web dev build tool
Arguments
Name | Description |
---|
command | folders |
Subcommands
Name | Description |
---|
build | Build for production |
optimize | Pre-bundle dependencies |
preview | Locally preview the production build |
Options
Name | Description |
---|
-h,--help | |
--host [command] | Specify the hostname |
--port <command> | Specify the port |
--https | Use TLS + HTTP/2 |
--open [command] | Open browser on startup |
--cors | Enable CORS |
--strictPort | Exit if the port is already in use |
--force | For the optimizer to re-bundle |
-c,--config <command> | |
--base <command> | |
-l,--logLevel <command> | |
--clearScreen | |
-d,--debug [command] | |
-f,--filter <command> | |
-m,--mode <command> | |
-v,--version | Display version number |