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

前端 未结 4 1901
予麋鹿
予麋鹿 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 v6.x reads --source-map as --sourceMap. So both --source-map and --sourceMap works for me for CLI v6.0.8

    Go to package.json Change "test":"ng test" to "test":"ng test --source-map=false" to turn off sourcemaps.

    Please note it shoud be --source-map and not --source-maps.

提交回复
热议问题