envy-loader
dotenv style environment variable file loader module for webpack
Install
npm install --save-dev envy-loader
Usage
Same as with most other webpack loaders:
Configuration (recommended)
/* webpack.config.js */ moduleexports = module: rules: test: /\.env$/ use: 'envy-loader'
;
CLI
webpack --module-bind 'env=envy-loader'
Inline
;