Skip to content

DanielChuDC/angular_webpack_with_env

Repository files navigation

Description

This project demo how frontend Angular can get environment variable through webpack.

How to run the project?

  • 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.

Demo Image

alt text