Skip to content

Commit b6755c7

Browse files
committed
feat: minify html build
1 parent 0084065 commit b6755c7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build-and-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
- name: Build
2929
run: make all
3030

31+
- run: curl -L https://github.com/wilsonzlin/minify-html/releases/download/v0.15.0/minhtml-0.15.0-x86_64-unknown-linux-gnu > minhtml
32+
33+
- run: ./minhtml --keep-closing-tags --minify-css dist/*.html dist/*.css
34+
3135
- name: Setup Pages
3236
id: pages
3337
uses: actions/configure-pages@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
minhtml

0 commit comments

Comments
 (0)