Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Update minify.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CasieBarie authored Jun 16, 2024
1 parent 1d271db commit 3a42844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/minify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- run: npm install -g html-minifier

# Use CLI tools to minify, overwriting existing files
- run: for i in *.js; do terser $i --compress -o $i; done
- run: for i in *.css; do csso $i -o $i; done
- run: for i in *.html; do html-minifier --collapse-boolean-attributes --collapse-whitespace --minify-css --minify-js --minify-urls --remove-attribute-quotes --remove-comments $i -o $i; done
- run: for i in $(find -name '*.js'); do terser $i --compress -o $i; done
- run: for i in $(find -name '*.css'); do csso $i -o $i; done
- run: for i in $(find -name '*.html'); do html-minifier --collapse-boolean-attributes --collapse-whitespace --minify-css --minify-js --minify-urls --remove-attribute-quotes --remove-comments $i -o $i; done

# Push changes to `gh-pages` branch
- run: |
Expand Down

0 comments on commit 3a42844

Please sign in to comment.