Angular2-cli not considered app folder files and some other files in dist folder.
问题 I have used below steps to generate dist in production npm install -g angular2-cli ng new PROJECT_NAME cd PROJECT_NAME After this I have copied all the code it included app folder ng serve it will open my project and runs successfully. ng build --prod Now it is building everything and creating dist folder also, but incomplete. There is no app folder or required files. Please suggest me the method to generate angular 2 build. I want to host this build in any web server. 回答1: app folder only