webpack-dotenv-provider

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i webpack-dotenv-provider

Weekly Downloads

6

Version

0.0.3

License

MIT

Unpacked Size

2.63 kB

Total Files

4

Last publish

Collaborators

  • hmak