2

why we need a web server for the angular build?

  1. Why I cannot directly run dist/index.html?

  2. If my angular build has all the bundled js files hosted and someone copies page source then why it does not run?

I referenced: SO question and Github discussion to understand this process. But could not find out the reason behind why the angular app cannot be accessed through file://.

It would be great if someone can spare some time to explain this conceptual issue.

Thanks!

Always_a_learner
  • 4,585
  • 13
  • 63
  • 112

0 Answers0