feat: add --minify arg in the build command (#8)

This commit is contained in:
zhixuan 2022-10-02 17:23:22 +09:00 committed by GitHub
parent 27c04d3d0f
commit 810c8740c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
.vscode/tasks.json vendored
View File

@ -17,7 +17,7 @@
{ {
"label": "Build", "label": "Build",
"type": "shell", "type": "shell",
"command": "hugo", "command": "hugo --minify",
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true

View File

@ -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: 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) ![](https://user-images.githubusercontent.com/5889006/156917172-01e4d418-3469-4ffb-97e4-a905d28b8424.png)