{"library":"config-webpack","type":"library","category":null,"description":"config-webpack (v1.0.5) is a Webpack plugin that bridges node-config into client-side bundles. It replaces global references (default `CONFIG`) with resolved config values via Webpack's DefinePlugin, supporting deployment-, instance-, local files, and environment variables. Compatible with Webpack 1–4 and node-config 1–3. Unlike runtime config solutions, it bakes config at build time, making it immutable and suitable for single-page apps. The plugin only injects referenced keys, but beware that top-level objects like `CONFIG` can leak the entire config even if gated behind a condition.","language":"javascript","status":"maintenance","version":"1.0.5","tags":["javascript","config","node-config","webpack","plugin"],"last_verified":"Wed May 27","install":[{"cmd":"npm install config-webpack","imports":["const ConfigWebpackPlugin = require('config-webpack');","if (CONFIG.myKey) { … }","plugins: [new ConfigWebpackPlugin()]"]},{"cmd":"yarn add config-webpack","imports":[]},{"cmd":"pnpm add config-webpack","imports":[]}],"homepage":null,"github":"https://github.com/arthanzel/node-config-webpack","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/config-webpack","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/config-webpack/compatibility"}}