What are the .map files used for in angular-cli and can ng build not create these files?

前端 未结 3 744
忘了有多久
忘了有多久 2021-02-13 01:33

ng build of angular-cli creates 3 files:

inline.bundle.js
vendor.bundle.js
main.bundle.js

and also a map file for each own. What for?

I

3条回答
  •  无人共我
    2021-02-13 02:15

    .map files are used for debugging your application. It is not related with angular-cli and is feature of typescript compiler, you may set\unset in tsconfig file like below,

     "sourceMap": true\false
    

    Hope this helps!!

提交回复
热议问题