vue webpack build时关闭debug和console
1.找到 webpack.prod.conf.js ,搜索 UglifyJsPlugin,添加配置
uglifyOptions: { compress: { warnings: false, drop_debugger: true,//关闭debug drop_console: true,//关闭console } },
1.找到 webpack.prod.conf.js ,搜索 UglifyJsPlugin,添加配置
uglifyOptions: { compress: { warnings: false, drop_debugger: true,//关闭debug drop_console: true,//关闭console } },