preview
is for when your app is already built
(with npm run build
), it's to check the static result. At the end, serve
is the name that was used with Vue2's CLI for preview
.
If you want to work locally with it, simply run npm run dev
.
更多信息请点击Vite's documentation.