Browse Source

关闭警告 Failed to prettify component

master
yangkun 2 months ago
parent
commit
7a1d53ae08
  1. 7
      vue.config.js

7
vue.config.js

@ -11,5 +11,12 @@ module.exports = {
errors: true,
warnings: true
}
},
chainWebpack: (config) => {
config.module.rule('vue').use('vue-loader').loader('vue-loader')
.tap(options => {
options.prettify = false // 关闭
return options
})
}
}

Loading…
Cancel
Save