Skip to content

Commit

Permalink
Experiment with an html minifier to make site smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Aug 4, 2024
1 parent 8be8bb5 commit d385f28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Minify HTML to make the site as small as possible
if: github.event_name != 'pull_request'
run: |
npm install html-minifier
html-minifier --collapse-whitespace --minify-js --minify-css --remove-comments --file-ext html --input-dir _site --output-dir _site
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit d385f28

Please sign in to comment.