Skip to content

Instantly share code, notes, and snippets.

Created February 28, 2018 00:23
What would you like to do?
VSCode task for Hugo with error detection.
"version": "2.0.0",
"tasks": [
"label": "Hugo",
"type": "shell",
"command": "hugo serve",
"group": "build",
"isBackground": true,
"problemMatcher": {
"severity": "error",
"fileLocation": "absolute",
"owner": "hugo",
"pattern": {
"regexp": "template: (.*):(\\d+): (.*)",
"file": 1,
"location": 2,
"message": 3,
"loop": true
"background": {
"activeOnStart": true,
"beginsPattern": "Change detected, rebuilding site",
"endsPattern": "Total in \\d+ ms"
Copy link

Thank you! 👏

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