关闭sources
//vue.config.js中配置
configureWebpack: {
devtool:
process.env.NODE_ENV === "development"
? "cheap-module-eval-source-map"
: "cheap-module-source-map",
},
关闭devtools
Vue.config.productionTip = false
const isDebug_mode = process.env.NODE_ENV !== "production"
Vue.config.debug = isDebug_mode
Vue.config.devtools = isDebug_mode
Vue.config.productionTip = isDebug_mode