@0x-jerry/unplugin-env
v0.1.1
Published
Auto generate typedef for env variables.
Downloads
13
Maintainers
Readme
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 */
}),
],
}