Skip to content

Commit

Permalink
Deactivate minify for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermeyer committed Sep 25, 2023
1 parent ceaf453 commit d7d6377
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/antora_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ jobs:
sed -i "/antora-assets\/css\/site-extra.css/d" "$file"
done
- name: Install html-minifier
run: |
npm install -g html-minifier
- name: Aggressively minify HTML files
run: |
find ./build/site/ -name "*.html" | while read -r file; do
html-minifier --collapse-whitespace --remove-comments --minify-js --minify-css --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --use-short-doctype --collapse-boolean-attributes --sort-attributes --sort-class-name --remove-empty-elements < "$file" > "$file".tmp
mv "$file".tmp "$file"
done
# - name: Install html-minifier
# run: |
# npm install -g html-minifier

# - name: Aggressively minify HTML files
# run: |
# find ./build/site/ -name "*.html" | while read -r file; do
# html-minifier --collapse-whitespace --remove-comments --minify-js --minify-css --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --use-short-doctype --collapse-boolean-attributes --sort-attributes --sort-class-name --remove-empty-elements < "$file" > "$file".tmp
# mv "$file".tmp "$file"
# done

- name: Zopfli compress all HTML and CSS files
run: |
Expand Down

0 comments on commit d7d6377

Please sign in to comment.