We have been running our application using the ng serve command since Chapter 2, Our First Application – Sports News Combinator, so we have some understanding of the command. Let's now look at it in more detail.
The Angular CLI uses webpack to serve up the built application. Webpack does not go to the dist folder to fetch the files for rendering but in fact uses the in-memory files. This allows the application's rendering to be fast as well as helping with live-reload of the application when changes are done at runtime.
Let's start looking at our serve command as shown here:
ng serve
When Angular CLI encounters the serve command, the first thing it does it ask webpack to build the code in-memory and then get the server up and running to host the application. This server is no physical server on any machine; it's a simple development...