vite [root]
Native ESM-powered web dev build tool
Arguments
Name | Description |
---|
root | folders |
Subcommands
Name | Description |
---|
build | Build for production |
optimize | Pre-bundle dependencies |
preview | Locally preview the production build |
Options
Name | Description |
---|
-h, --help | |
--host [host] | Specify the hostname |
--port <port> | Specify the port |
--https | Use TLS + HTTP/2 |
--open [browser] | 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 <file> | |
--base <path> | |
-l, --logLevel <level> | |
--clearScreen | |
-d, --debug [feat] | |
-f, --filter <filter> | |
-m, --mode <mode> | |
-v, --version | Display version number |