@0x-jerry/unplugin-env
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Unplugin env

Auto generate typedef for env variables.

Install

npm i @0x-jerry/unplugin-env

Usage

Vite

// vite.config.ts
import Env from '@0x-jerry/unplugin-env/vite'

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

Example: playground/

Webpack

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('@0x-jerry/unplugin-env/webpack')({
      /* options */
    }),
  ],
}

Package Sidebar

Install

npm i @0x-jerry/unplugin-env

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

44.4 kB

Total Files

32

Last publish

Collaborators

  • cwxyz