launchcodedev / app-config

Easy Configuration Loader with Strict Validation
https://app-config.dev
Mozilla Public License 2.0
69 stars 11 forks source link

Provide a way to ensure "static" app-config values in webpack plugin #102

Closed joelgallant closed 3 years ago

joelgallant commented 3 years ago

This runs against headerInjection and the Cypress plugin, but a way to guarantee that configuration is "as-is" would allow Webpack to optimize bundles better. This would be a nice feature to enable for production builds.

Naturally, we do still like @app-config/inject. So maybe it makes sense to "freeze" a subset of your config (ie. global feature flags), which would not be allowed via injection.