how to compile angular project code example Example 1: ng build prod ng build --prod Example 2: build angular project ng build <project> [options]