angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Build does not transpile any of the .ts to the build directory

Open nyabwana opened this issue 10 years ago • 3 comments

  1. Ubuntu 16.04 Server
  2. 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

nyabwana avatar Sep 14 '16 20:09 nyabwana

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

celliott181 avatar Sep 15 '16 12:09 celliott181

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/?

filipesilva avatar Sep 21 '16 17:09 filipesilva

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.