This project demo how frontend Angular can get environment variable through webpack.
- Open your terminal
- enter command
export USERNAME="<your username>"
in your terminal - enter command
ng serve
in your terminal - Go to your browser, navigate to http://localhost:4200
- You will see the example are running and your username has shown in the webpage.