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

Any warning about build.outDir? #1501

Closed
CHOYSEN opened this issue Jan 12, 2021 · 0 comments
Closed

Any warning about build.outDir? #1501

CHOYSEN opened this issue Jan 12, 2021 · 0 comments

Comments

@CHOYSEN
Copy link
Contributor

CHOYSEN commented Jan 12, 2021

Is your feature request related to a problem? Please describe.
If user careless setting it like . or ../, Vite will remove all files in that directory⛔⛔⛔

emptyDir(outDir)

Describe the solution you'd like
Only empty folder are allowed at the first time, then put a hidden file in this directory as a sign after build?

I think there should be at least a warning when outDir outside of the Vite project!!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant