0.1.0-beta.0 • Published 9 months ago

@0x-jerry/unplugin-env v0.1.0-beta.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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 */
    }),
  ],
}