@smallstack/evti
v0.2.0
Published
Environment Variables to index.html - Tiny CLI that adds real environment variables to index.html files during e.g. release/build processes to support e.g. dynamic environment vars in angular/node applications.
Maintainers
Readme
Environment Variables to index.html - EVTI
Adds real environment variables to an index.html file, e.g. for passing dynamic env variables to node applications
Usage
evti javascriptVariableName=ENVIRONMENT_VARIABLE_NAMEExample
export API_URL=https://api.smallstack.com
evti apiUrl=API_URLGetting started
- Install the package:
npm i -g @smallstack/evti- Navigate to the folder where your index.html file is located
- Make sure, all environment variables are set
- Execute the CLI:
evti javascriptVariableName=ENVIRONMENT_VARIABLE_NAME