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_NAME
Example
export API_URL=https://api.smallstack.com
evti apiUrl=API_URL
Getting 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