How to debug angular app using angular-cli webpack?

后端 未结 6 1536
孤城傲影
孤城傲影 2020-11-29 01:14

I used angular-cli@1.0.0-beta.10 before and now I updated to angular-cli@webpack beta.11. After a lot of custom changes I got it to work.

The only thing is that now

6条回答
  •  囚心锁ツ
    2020-11-29 01:36

    ok got it working, you need to map both root and src. see here:

    hopefully it helps someone,

    let me add that sometimes the debugger will miss your breakpoint so add alert('foo') or ;debugger code just before your breakpoint.

    tx

    will be adding and convering jspm projects to new cli Angular 2 Kitchen sink: http://ng2.javascriptninja.io and source@ https://github.com/born2net/ng2Boilerplate Regards,

    Sean

提交回复
热议问题