How to remove webpack:// from sources in the browser

if you are using vue-cli and have a vue.config.js file then you can simply just add it like this

module.exports = {
    productionSourceMap: false,
}

That's because webpack generates source maps which show the original source code and structure.

For the webpack template, you should look for the config/index.js file,

and in order to skip the source map generation change productionSourceMap to false:

module.exports = {
  dev: {
    (...)
  },

  build: {
  
    (...)

    productionSourceMap: false,
    // https://webpack.js.org/configuration/devtool/#production
    devtool: '#source-map',

    (...)
  }
}