Skip to content

Instantly share code, notes, and snippets.

@akhansari
Created February 28, 2018 00:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhansari/2cee58315b39d056ed0b6b7faa8b80bf to your computer and use it in GitHub Desktop.
Save akhansari/2cee58315b39d056ed0b6b7faa8b80bf to your computer and use it in GitHub Desktop.
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"
}
}
}
]
}
@achingono
Copy link

Thank you! 👏

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