mrsteele/dotenv-webpack
A secure webpack plugin that supports dotenv and other environment variables and only exposes what you choose and use. observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 71
- Release rhythm 42
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 254
- age_days: 3683
- days_rel: 179
- days_push: 179
- n_releases_24m: 2
Adoption not part of the score
1295 stars · 75 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A webpack plugin that wraps dotenv and DefinePlugin to inject environment variables into your bundle at build time. It only exposes variables explicitly referenced in your code, keeping unreferenced secrets out of the final bundle.
Use cases
- inject environment variables into a webpack bundle
- keep .env secrets out of client-side JavaScript
- replace process.env references at build time
- use dotenv with webpack without leaking unused variables
- manage per-environment config for a frontend build
When to choose
- you build with webpack and want dotenv support
- you need selective exposure of env vars for security
- you want minimal configuration for env handling in bundles
When to avoid
- you use Vite, esbuild, or another bundler with native env support
- you need runtime (server-side) environment variable loading rather than build-time replacement
- you need to expose all env vars to the bundle
Facets
plugin · maturity active
configuration-management security build-tool plugin-system web-development frontend developer-tools security webpack-plugin dotenv environment-variables bundler twelve-factor nodejs javascript
2 sources
- readme: https://github.com/mrsteele/dotenv-webpack · fetched 2026-08-28 · e96be372a3b6
- registry_npm: https://registry.npmjs.org/dotenv-webpack · fetched 2026-08-29 · 9d5cbddf088a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mrsteele/dotenv-webpack | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="mrsteele/dotenv-webpack")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem