vite-plugin-meta-env-dts
v0.0.6
Published
Automatically generate type declarations based on env.* files.
Downloads
7
Readme
vite-plugin-meta-env-dts
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'