dotenv-esbuild
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i dotenv-esbuild

Weekly Downloads

123

Version

1.1.0

License

ISC

Unpacked Size

3.1 kB

Total Files

4

Last publish

Collaborators

  • havkin