Skip to content

vixt preview ​

Start a local server to preview the production build. Run vixt build before starting the preview server.

Usage ​

sh
vixt preview [root]

Options ​

OptionDescriptionDefault
-d, --debugShow debug logsfalse
-m, --mode=<mode>Set the environment mode-
-l, --logLevel=<info|warn|error|silent>Set the log level-
--clearClear the consolefalse
--forceIgnore the cache and force dependency re-bundlingfalse
--host=<host>Specify the server host-
-p, --port=<port>Specify the server port-
-o, --openOpen the application in the browserfalse
--corsConfigure CORS for the preview serverfalse
--strictPortExit if the specified port is already in usefalse