Socket
Book a DemoInstallSign in
Socket

webpack-dotenv-provider

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-dotenv-provider

Webpack plugin to include .env file into your app

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

webpack-dotenv-provider

Webpack plugin to include .env file into your bundle. It uses dotenv to parse .env file.

Installation

npm

npm install --save-dev webpack-dotenv-provider

yarn

yarn add --dev webpack-dotenv-provider

Usage

In your webpack configuration file, you should first require this package;

const DotenvProvider = require('webpack-dotenv-provider');

and then add it to your plugins array

{
    plugins: [
        DotenvProvider()
    ]
}

Keywords

webpack

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts