You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
I think this is caused by npx. npx --no vite --config vite.config.ts does not work, but npx --no -- vite --config vite.config.ts works. I think the config option is removed by npx.
Describe the bug
https://vite.dev/config/
It states you can do the following:
vite --config my-config.js
This does not work on my machine, I must explicitly use the = symbol:
vite --config=my-config.js
for this to workConfig (vite.config.ts):
Works:
Does not work:
As you see, it doesn't respect the port number.
Reproduction
https://github.com/basickarl/ts-alias
Steps to reproduce
npm install
for it to work run: npm run dev
for it to not respect the config run: npm run dev-does-not-use-config
You can see in the package.json the differences between the scripts.
System Info
I am also using ZSH as the shell.
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: