Skip to content

Instantly share code, notes, and snippets.

@gimelfarb
Created February 10, 2020 20:14
Show Gist options
  • Select an option

  • Save gimelfarb/2ae7040c4b96587a90ac2f9de8b949b1 to your computer and use it in GitHub Desktop.

Select an option

Save gimelfarb/2ae7040c4b96587a90ac2f9de8b949b1 to your computer and use it in GitHub Desktop.
VSCode task for webpack dev server
{
"version": "2.0.0",
"tasks": [
{
"label": "start-web-server",
"type": "npm",
"script": "start",
// "path": "packages/xxx/", <-- for monorepo
"isBackground": true,
"problemMatcher": [
{
"owner": "webpack",
"source": "webpack",
"pattern": [
{
"regexp": "^ERROR in (.*)$",
"file": 1,
},
{
"regexp": "^(.*)$",
"message": 1
},
{
"regexp": "@(.*)(\\d+:\\d+)",
"location": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Compiling\\.\\.\\.",
"endsPattern": "(Compiled)|(Failed to compile)"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment