Rich-Harris / vite-env-reload

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-env-reload

Repro for vitejs/vite#12127.

git clone git@github.com:Rich-Harris/vite-env-reload
cd vite-env-reload
npm i
npm start

While running the dev server, create an .env file. Nothing happens.

Edit the .env file to include a message like VITE_MESSAGE=hello. The server restarts, and the message is printed below.

Edit the message. The server restarts.

Delete the .env file. The server does not restart.

About


Languages

Language:HTML 88.4%Language:JavaScript 11.6%