0.1.1 • Published 1 year ago

@0x-jerry/unplugin-env v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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 */
    }),
  ],
}
0.1.0

2 years ago

0.1.1

1 year ago

0.1.0-beta.0

2 years ago