vue webpack build时关闭debug和console
程序员文章站
2022-05-11 12:14:07
1.找到 webpack.prod.conf.js ,搜索 UglifyJsPlugin,添加配置 ......
1.找到 webpack.prod.conf.js ,搜索 UglifyJsPlugin,添加配置
uglifyOptions: { compress: { warnings: false, drop_debugger: true,//关闭debug drop_console: true,//关闭console } },