This plugin works fine with env vars defined in .env files, but it ignores all other env variables coming from vite like dev, prod, mode etc.
Basically there should be a possibility to use everything that is defined at import.meta.env. Now simple conditional tag is not working:
<script type="text/javascript" vite-if="import.meta.env.dev">
const var = 'abc';
</script>
This plugin works fine with env vars defined in .env files, but it ignores all other env variables coming from vite like
dev
,prod
,mode
etc. Basically there should be a possibility to use everything that is defined atimport.meta.env
. Now simple conditional tag is not working: