How to debug Angular in prod server?

后端 未结 4 1658
萌比男神i
萌比男神i 2020-12-28 15:08

In the development environment I can debug with the Chrome source tab , but in the prod server I use the dist folder content after running ng build --prod. This

4条回答
  •  北海茫月
    2020-12-28 15:50

    Update: You can tryng build --prod --sourcemap

    For the previous versions of angular-2 this would work , ng build --prod --sourcemap

    For Angular 8

    As mentioned in the comments

    ng build --prod --sourceMap
    

提交回复
热议问题