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
(!) 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.
The dist directory is dynamically built by a nodejs script, that copies files from different locations into the dist directory, to end up with a fully configured VueJS app. (Monorepo style)
Suggested solution
Maybe an additional config flag could be used to allow monorepo setups?
Or an option to suppress this warning?
I am unsure if my use case is common enough to even warrant this. If not please feel free to close :)
I think usecases like this is indeed rare and I think it's still useful to keep the warning in place. It can be dangerous too when having both the same value, especially in conjunction to emptyOutDir: true as you may be deleting your entire source code during build. I'll close this for now and a workaround if you need a different behaviour is probably fine for now.
Description
I'm seeing this warning:
With a vite config like this:
The
dist
directory is dynamically built by a nodejs script, that copies files from different locations into the dist directory, to end up with a fully configured VueJS app. (Monorepo style)Suggested solution
Maybe an additional config flag could be used to allow monorepo setups?
Or an option to suppress this warning?
I am unsure if my use case is common enough to even warrant this. If not please feel free to close :)
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: