-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite preview can't use --mode option #17410
Comments
It is passed here vite/packages/vite/src/node/cli.ts Line 352 in e3c8278
|
Hello @Crone1331. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Preview doesn't actually build. So, while the |
I wrote a tool which may behave a little more like you expect. It puts together vite build with watching and a preview server as a single command.
Hope this helps. Feel free to post issues on the repo or contribute. |
Describe the bug
When I use
vite preview -h,
But the vite preview command doesn't use the mode option.
A similar problem was solved here, but apparently without success:
#6391
Reproduction
any project
Steps to reproduce
any project
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: