测试环境chrome控制台关于source map的一系列警告解决
DevTools failed to load source map: Could not load content for webpack:///node_modules/element-plus/es/index.mjs.map: Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
解决
webpack.config.js 或者vue.config.js中添加devtool: 'inline-source-map'
以vue.config.js为例
module.exports = {
// web配置
configureWebpack: {
devtool: 'inline-source-map',
},
}