Skip to content

Instantly share code, notes, and snippets.

@akhansari
Created Feb 28, 2018
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

achingono commented Mar 18, 2022

Thank you! 👏

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