vue.config.js 中:

...
module.exports = {
  ...
  productionSourceMap: true,
  configureWebpack: config => {
    config.devtool = 'source-map'
  },
  ...
}