Skip to content

Instantly share code, notes, and snippets.

@js62789
Last active September 21, 2018 19:26
Show Gist options
  • Save js62789/003e77145a18b128453220dda62fd39b to your computer and use it in GitHub Desktop.
Save js62789/003e77145a18b128453220dda62fd39b to your computer and use it in GitHub Desktop.
A set of VSCode configurations that allow for easy client-side debugging of React
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/src",
"preLaunchTask": "start",
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*",
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "start",
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": "^$"
},
"background": {
"activeOnStart": true,
"beginsPattern": "Starting the development server...",
"endsPattern": "Compiled .*"
}
},
"identifier": "Start Server"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment