Angular CLI Basics - ng build

ng build Exercise


In this section, build your application twice in the following ways:

  • Setting the configuration to production using the shorthand flag
  • Setting the configuration to development

To successfully accomplish the second exercise, you need to have a development configuration entry in the build.configurations object in your angular.json file. You can copy what I did in the previous video where I duplicated the production environment entry and then renamed it to development, or you can click on this link and go to this gist. Copy the contents of the gist and replace your angular.json contents with the contents of the gist. Copying the contents of the gist will only work, however, if you've followed along with me throughout the course.


I finished! On to the next chapter