webpack-dotenv-provider
v0.0.5
Published
Webpack plugin to include .env file into your app
Downloads
36
Maintainers
Readme
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()
]
}