How do I turn off source maps for Angular 6 ng test?

前端 未结 4 1904
予麋鹿
予麋鹿 2020-12-14 07:52

I am trying to turn off sourcemaps for my tests in Angular 6. I know the sourcemaps switch has been removed, e.g., ng test --sourcemaps=false.

I have tri

4条回答
  •  心在旅途
    2020-12-14 08:06

    Angular CLI changing this param from version to version as per this answer:

    CLI v6.0.8 and above
    --source-map=false

    CLI v6.0.x early versions
    --sourceMap=false

    CLI v1.x
    --sourcemaps=false

    Shortcut ng test -sm=false might also work

    In case if you are on the latest CLI and none of above works you can always check the Options section at https://github.com/angular/angular-cli/blob/master/docs/documentation/test.md for the recent param name

提交回复
热议问题