diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d4593325c..9dcab447c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,6 +7,9 @@ "label": "build", "type": "shell", "command": "./build.sh", + "windows": { + "command": ".\\build.cmd" + }, "group": { "kind": "build", "isDefault": true @@ -17,6 +20,9 @@ "label": "serve", "type": "shell", "command": "./serve.sh", + "windows": { + "command": ".\\serve.cmd" + }, "group": "build", "isBackground": true, "problemMatcher": { diff --git a/build.cmd b/build.cmd new file mode 100644 index 000000000..db845ebe0 --- /dev/null +++ b/build.cmd @@ -0,0 +1,3 @@ +del /f/s/q .\public\ > nul + +hugo --minify \ No newline at end of file diff --git a/serve.cmd b/serve.cmd new file mode 100644 index 000000000..f7a48e861 --- /dev/null +++ b/serve.cmd @@ -0,0 +1,3 @@ +del /f/s/q .\public\ > nul + +hugo server --watch --disableFastRender