Skip to content

Instantly share code, notes, and snippets.

@akhansari
Created February 28, 2018 00:23
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
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"
}
}
}
]
}
@achingono
Copy link

Thank you! 👏

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