1.1.0 • Published 1 year ago

dotenv-esbuild v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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'
    })
  ]
1.1.0

1 year ago

1.0.0

1 year ago