ng serve doesn't generate dist folder anymore with new angular-cli webpack beta
The new angular-cli version with webpack will generate dist
folder only after ng build
.
ng serve
works only in-memory now.
Just use ng build --watch
. It will be rebuilding the project on changes.
In the root folder of your angular2 project, run:
ng build
Or for production:
ng build --prod
This command will generate the dist folder.