Build does not transpile any of the .ts to the build directory
- Ubuntu 16.04 Server
- angular-cli: 1.0.0-beta.11-webpack.2 node: 4.2.6 os: linux x64
I created this app using cli. When I ran ng build -prod to create a production version. Nothing was transpiled and thus when I run http-server in order to have it run using pm2, I get no output. I hope I am being clear
ng build -prod is invalid syntax. You want ng build --prod or the shorthand, ng build, which will output a production build in dist.
For more info on build options, see here: https://github.com/angular/angular-cli#build-targets-and-environment-files
ng build -prod should work. I tried it on a brand new beta.15 project and it built the project onto dist/.
Maybe the problem was that you were expecting the files to get transpiled in place, but instead the build artifacts are in dist/?
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.