user1150103
user1150103

Reputation: 657

How to specify runtime directory for Vite when running the dev server

I'm trying to use Vite for a React project. I need to configure Vite so that when I run the dev server it places the runtime files in a particular directory (because the files are used with another runtime environment). The server config doesn't seems to have an option but I'm not sure if I'm missing something or it is in a different place. Thanks

Upvotes: 6

Views: 1833

Answers (1)

diedu
diedu

Reputation: 20775

It doesn't seem to be possible right now according to this repo discussion https://github.com/vitejs/vite/discussions/6108

Meanwhile, you could run the dev command along with the build --watch command to have both, but it would get slower

npm run dev & npm run build -- --watch

Upvotes: 4

Related Questions