Skip to content

🍋 Automatically generate type declarations based on env.* files.

License

Notifications You must be signed in to change notification settings

xparcai/vite-plugin-meta-env-dts

Repository files navigation

vite-plugin-meta-env-dts

NPM version

vite-plugin-meta-env-dts for vite.

Install

npm i vite-plugin-meta-env-dts
// vite.config.js
import metaEnvDts from 'vite-plugin-meta-env-dts'

export default defineConfig({
  plugins: [metaEnvDts({ /* options */ })],
})

Options

includes

type string | string[]

default ['.env.*']

prefix

type string | string[]

default ['VITE_']

dts

type string | false

default 'types/auto-meta-env.d.ts'

License

MIT License © 2024 XParCai

About

🍋 Automatically generate type declarations based on env.* files.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published