I am currently developing a web application using Angular 2 with TypeScript and angular-cli. I needed to test the application on the server without uploading the source code, so I used the command "ng build --prod". Despite deleting all .map files from the folder before uploading it to the server, I still noticed that the TypeScript code was visible when inspecting the source in the Chrome developer tools. The only files I did not delete were the .gz files. My question is, what is the proper way to build a production project with webpack without exposing the TypeScript code?
I apologize for any language mistakes in my explanation. I hope I am getting my point across clearly.
Essentially, my goal is to prevent anyone from viewing my TypeScript code when in developer mode.