dotenv-esbuild
v1.1.0
Published
A simple esbuild plugin to support dotenv.
Downloads
18,387
Readme
dotenv-esbuild
ESBuild plugin that use dotenv to setup environment variables
Installation
npm install dotenv-esbuild --save-dev
Usage
import esbuild from "esbuild"
import Dotenv from 'dotenv-esbuild';
esbuild.build({
...
plugins: [ new Dotenv()],
})
Properties
Use the following properties to configure your plugin.
- path - The path to your environment variables (default:
'./.env'
).
Example:
plugins: [
new Dotenv({
path: '../path_to/.env'
})
]