Skip to content
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

build.outDir must not be the same directory of root or a parent directory of root #171

Closed
hschletz opened this issue Apr 26, 2024 · 2 comments

Comments

@hschletz
Copy link

After updateing Vite from 5.2.8 to 5.2.10, I get this warning:

(!) build.outDir must not be the same directory of root or a parent directory of root as this could cause Vite to overwriting source files with build outputs.

According to the comment in the code, this is set on purpose.

@susnux
Copy link
Contributor

susnux commented May 14, 2024

Yes this is done on purpose for apps to be able to output code to /js while styles go into /css so this error can be ignored.

@susnux susnux closed this as completed May 14, 2024
@susnux susnux pinned this issue May 14, 2024
@hschletz
Copy link
Author

Is there a way to suppress the message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants