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

前端 未结 3 753
忘了有多久
忘了有多久 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:00

    Below command will not generate the source files while generating the build:

    >ng build --prod -sm false

    and if you want to generate the source files the use below command:

    >ng build --prod -sm true

    Here is the screenshot:

提交回复
热议问题