Skip to content

Instantly share code, notes, and snippets.

@johnhamm
Created January 19, 2017 20:41
Show Gist options
  • Save johnhamm/d8256fc9ce1561b62af35b90341fb44e to your computer and use it in GitHub Desktop.
Save johnhamm/d8256fc9ce1561b62af35b90341fb44e to your computer and use it in GitHub Desktop.
webpack webpack-dev-server problem matcher for vscode
{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"showOutput": "silent",
"args": ["run"],
"tasks": [{
"taskName": "dev",
"isWatching": true,
"isBuildCommand": true,
"problemMatcher": {
"owner": "webpack",
"severity": "error",
"fileLocation": "absolute",
"pattern": [{
"regexp": "ERROR in [^ ]* (.*):(.*):(.*)",
"file": 1,
"line": 2,
"column": 3
},
{
"regexp": ".*",
"message": 0
}
],
"watchedTaskBeginsRegExp": "webpack: bundle is now INVALID.",
"watchedTaskEndsRegExp": "webpack: bundle is now VALID."
}
}]
}
@leandrocrs
Copy link

updated version of problem matcher:

"problemMatcher": {
				"owner": "webpack",
				"severity": "error",
				"fileLocation": "absolute",
				"pattern": [
					{
						"regexp": "ERROR in [^ ]* (.*):(.*):(.*)",
						"file": 1,
						"line": 2,
						"column": 3
					},
					{
						"regexp": ".*",
						"message": 0
					}
				],
				"background": {
					"beginsPattern": "webpack building...",
					"endsPattern": "webpack built"
				}
			}

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