Node and Angular integration
The default setup for an Angular application configured using the Angular CLI already contains a number of options that can be used in a production setting. One of these options is the outputPath property, which specifies where compiled JavaScript files are written to. By using a separate path for output files, we know that we can distribute the contents of this directory as a fully working version of our site.
The outputPath option can be found in the angular.json file, under the Projects | Angular-sample | Architect | Build | Options configuration section. This property is, by default, set to "dist/angular-sample", and therefore, when we issue an ng build command, we will notice that the Angular CLI will generate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access