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

前端 未结 3 741
忘了有多久
忘了有多久 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 01:52

    @Madhu's answers disables it for any ng build command. If you want to conditionally or temporarily disable it from your builds run:

    Angular 8

    ng build --watch --source-map=true/false

    Angular 7

    ng build --watch --sourcemaps=true/false

    Angular 6

    ng build --watch --no-sourcemap

提交回复
热议问题