Skip to content

Instantly share code, notes, and snippets.

@n-peugnet
Last active April 7, 2020 12:42
Show Gist options
  • Save n-peugnet/54e160151fd6722475b328fbd8d21147 to your computer and use it in GitHub Desktop.
Save n-peugnet/54e160151fd6722475b328fbd8d21147 to your computer and use it in GitHub Desktop.
webpack typescript ts-loader problem matcher for vscode
{
"scripts": {
"watch": "webpack --watch"
},
"devDependencies": {
"ts-loader": "^5.3.3",
"typescript": "^3.4.4",
"webpack": "^4.24.0",
"webpack-cli": "^3.1.2"
},
}
{
"version": "2.0.0",
"tasks": [
{
"label": "watch",
"type": "npm",
"script": "watch -- --info-verbosity verbose",
"group": "build",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"severity": "error",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^\\[tsl\\] ERROR in (.*)\\((\\d+),(\\d+)\\)$",
"file": 1,
"line": 2,
"column": 3,
},
{
"regexp": "^\\s+(TS\\d+):\\s(.*)$",
"code": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Compilation starting…",
"endsPattern": "Compilation finished"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment