it is expected that after the vue is packaged, the debugging information console.log in the project can be automatically removed.
I added this section to my configuration item in the vue.config.js file
configureWebpack:{
optimization: {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false,
drop_console: true,//console
drop_debugger: false,
pure_funcs: ["console.log"]//console
}
}
})
]
}
}
however, it does not look at the desired effect.