并在main.ts中设置;environment.production为true代表生产环境,在里面添加console内容即可
angular2.xsetpackageandremoveconsole相关文章