关于前端:angular2x设置打包去除console

7次阅读

共计 64 个字符,预计需要花费 1 分钟才能阅读完成。

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

正文完
 0