So i am using ng build in my angular2 project to create smaller folder size of my project called dist, but once i upload my project to my web host using file transfer protocol(Filezilla) it doesn't show my website. Is there some step i am still missing?
I will always follow steps to deploy my App
1) add script in the package.json
"Prod_build": "ng build --base-href /yourappName/ --target=production --aot",
2) Run npm run Prod_build
3) copy your dist folder to your webhost.
对于产品构建,您需要运行
ng build --prod --aot --base-href /name/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.