kucrut/vite-for-wp

How to load dotevn variables?

asolopovas opened this issue · 2 comments

Does your plugin has ability to load dotenv variables from .env file?

I don't think it has anything to do with this package.

It's really easy to import env variables in Vite: https://vitejs.dev/guide/env-and-mode.html

kucrut commented

Yep, like @multiplehats said, you can follow Vite's official guide on how to load env variables.