Skip to content

Instantly share code, notes, and snippets.

@luizsaluti
Last active August 5, 2021 18:05
Show Gist options
  • Save luizsaluti/bbee2fe599f3a4e083e17dba13048aee to your computer and use it in GitHub Desktop.
Save luizsaluti/bbee2fe599f3a4e083e17dba13048aee to your computer and use it in GitHub Desktop.
<launch.json>
{
"type": "chrome",
"request": "launch",
"name": "vuejs: chrome",
"url": "http://localhost:8000",
"webRoot": "${workspaceFolder}/public",
"sourceMapPathOverrides": {
"webpack:///resources/assets/js/*.vue": "${workspaceFolder}/resources/assets/js/*.vue",
"webpack:///./resources/assets/js/*.js": "${workspaceFolder}/resources/assets/js/*.js",
"webpack:///./node_modules/*": "${workspaceFolder}/node_modules/*"
}
}
<webpack.mix.js>
//habilitando source maps
mix.webpackConfig({ devtool: 'source-map' });
mix.js("resources/assets/js/app.js", "public/js").sourceMaps()
@luizsaluti
Copy link
Author

luizsaluti commented Jul 18, 2021

Configurando debugger no VsCode via plugin "debugger for chrome"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment