https://github.com/0x-jerry/unplugin-env
Auto generate typedef for env variables.
https://github.com/0x-jerry/unplugin-env
unplugin vite-plugin webpack-plugin
Last synced: 11 months ago
JSON representation
Auto generate typedef for env variables.
- Host: GitHub
- URL: https://github.com/0x-jerry/unplugin-env
- Owner: 0x-jerry
- License: mit
- Created: 2023-08-11T01:43:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T04:31:59.000Z (11 months ago)
- Last Synced: 2025-02-19T05:27:04.786Z (11 months ago)
- Topics: unplugin, vite-plugin, webpack-plugin
- Language: TypeScript
- Homepage:
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unplugin env
Auto generate typedef for env variables.
## Install
```bash
npm i @0x-jerry/unplugin-env
```
## Usage
### Vite
```ts
// vite.config.ts
import Env from '@0x-jerry/unplugin-env/vite'
export default defineConfig({
plugins: [
Env({
/* options */
}),
],
})
```
Example: [`playground/`](./playground/)
### Webpack
```ts
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('@0x-jerry/unplugin-env/webpack')({
/* options */
}),
],
}
```