@dotenv-run/webpack

Run webpack scripts with environment variables loaded from .env files

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Run your scripts with dotenv variables

Commands

dotenv-run

Examples

Run webpack build with dotenv variables$ dotenv-run webpack build
Run webpack dev server with environment variables$ dotenv-run webpack serve
Execute webpack with specific .env file$ dotenv-run -f .env.production webpack