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