angular2.x设置打包去除console

在main.ts里进行设置;
environment.production 为true 代表生产环境,在里面添加console内容即可
image.png

评论

暂无评论