I initially started a project with beta 10 of the angular-cli, when I run ng serve at that point of time the dist folder would contain the compiled
In the root folder of your angular2 project, run:
ng build
Or for production:
ng build --prod
This command will generate the dist folder.
Just use ng build --watch. It will be rebuilding the project on changes.
In the root folder of your project run
ng serve --delete-output-path=false
or
ng serve --no-delete-output-path
This worked for me.
The new angular-cli version with webpack will generate dist folder only after ng build.
ng serve works only in-memory now.