Created
February 28, 2018 00:23
-
-
Save akhansari/2cee58315b39d056ed0b6b7faa8b80bf to your computer and use it in GitHub Desktop.
VSCode task for Hugo with error detection.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! 👏