From 810c8740c2f701288c1325a42a686bd76a6f948a Mon Sep 17 00:00:00 2001 From: zhixuan Date: Sun, 2 Oct 2022 17:23:22 +0900 Subject: [PATCH] feat: add `--minify` arg in the build command (#8) --- .vscode/tasks.json | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5f702e8..7432225 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -17,7 +17,7 @@ { "label": "Build", "type": "shell", - "command": "hugo", + "command": "hugo --minify", "group": { "kind": "build", "isDefault": true diff --git a/README.md b/README.md index d25bdc0..97c314e 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you want to build this site using another static page hosting, you need to ma You need to overwrite build command to install manually Go: ``` -amazon-linux-extras install golang1.11 && hugo -D --gc +amazon-linux-extras install golang1.11 && hugo --gc --minify ``` ![](https://user-images.githubusercontent.com/5889006/156917172-01e4d418-3469-4ffb-97e4-a905d28b8424.png)