env-gen-config
v1.1.14
Published
Converts .env file values or corresponsing overriden values to env-config.js file (window.__env__ variables)
Downloads
2
Readme
env-gen-config
This cli command is used to automatically generate .env file to env-config.json that contains input parameters for any Single Page Application framework like react, angular etc.
Use Case
This command can be used in dockerization of modern js based SPA projects like react or angular.
How to use
npx react-env-gen
Sample output
// generated by react-eng-gen
window._env_ = {
"VAR_1":"VAL-1",
"VAR_2":"VAL-2",
"VAR_3":"VAL-3"
}
Team
Muhammet Turşak [email protected]