vue-cli项目 配置webpack 自动删除开发中的console调试信息

new webpack.optimize.UglifyJsPlugin({ //自动删除console.log
      compress: {
        warnings: false,
        drop_debugger: true,
        drop_console: true
      },
      sourceMap: true
    }),

猜你喜欢

转载自blog.csdn.net/qq_21423689/article/details/80940865