1、只需要在build文件夹下的webpack.prod.comf.js里面的第39行左右加两句代码即可

vuecli打包后去掉打印和警告

drop_console: true,
pure_funcs: ['console.log']

相关文章: