webpack-env-loader-plugin

JSON →
library 1.0.0 ·javascript
verified May 9, 2026

A webpack plugin that extends DefinePlugin to load environment-specific configuration from files like config.{env}.json. It merges defaults (config.default.json) with environment-specific files and optionally loads local overrides and process.env values. The plugin exposes config under a global namespace (default: __CONFIG__) that webpack replaces at build time. It supports JSON and YAML config files. Version 1.0.0 is the latest stable release. Unlike dotenv or env-cmd, this plugin integrates directly into webpack's compilation process and can conditionally set React production mode via reactEnv option.

total hits 13
actors 2 distinct systems
last hit 10d ago AhrefsBot
MetaBot
3
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇬🇧 United Kingdom