【Tools】Debugger for Chrome 配置
zh-rocco opened this issue · comments
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch vuejs",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*"
}
}
]
}
// vue.config.js
module.exports = {
configureWebpack: {
devtool: 'source-map',
},
};