javascript - Deploy Angular-App with original files -
i have angular application build angular-cli. want deploy project spring-microservice. when deploy build, generated cli-command ng build --prod
application works fine.
but: want deploy original files including typescript files microservice can see console-logs come (which line in file, same when run application locally "ng serve").
a few months ago, had angular-project started angular quickstart. ran project npm (commands: npm install , npm start). project transpiled typescript-files javascript, , reason, project deployable , works fine.
but cli-project dont that, not deployable.
how can deploy application described?
in presentation, generated angular project cli, generated rest server using spring boot, , showed how deploy angular app under spring server https://youtu.be/k8r76d8qzxs?t=870.
to able debug typescript code prod bundles, use add --sourcemaps option:
ng build -prod --sourcemaps true
Comments
Post a Comment