I found a great tutorial that explains how to setup express.js with Angular CLI, but in this tutorial the angular app is compiled into a production dist folder: https://scotch.io/tutorials/mean-app-with-angular-2-and-the-angular-cli
How do I integrate express.js with Angular CLI, but I want the express.js to work with the development version of the Angular app and I want the nodemon to restart if I make changes to either the express OR angular app.
Have been spending over eight hours trying to get this working. Thanks!
I don't want to run 'ng build' every time I make a change to the Angular app (this takes too long) - I want instant reloading whenever I save a change to my angular app (as if I was running 'ng serve') or express app.
I found a tutorial where you hook up Angular 2 QuickStart with Express, it works but I'm looking to use Angular CLI.
I understand that the Angular CLI uses WebPack whereas the QuickStart uses System.js
See Question&Answers more detail:os