https://github.com/nvfp/ghact_minify_htmls
Github action for minifying HTML files using `html-minifier` tool
https://github.com/nvfp/ghact_minify_htmls
ghactions html-minifier
Last synced: 5 months ago
JSON representation
Github action for minifying HTML files using `html-minifier` tool
- Host: GitHub
- URL: https://github.com/nvfp/ghact_minify_htmls
- Owner: nvfp
- License: other
- Created: 2024-01-22T10:36:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T05:01:43.000Z (over 2 years ago)
- Last Synced: 2025-02-14T03:55:13.202Z (over 1 year ago)
- Topics: ghactions, html-minifier
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Minify all your HTML files using [minify-html](https://github.com/kangax/html-minifier) tool with prechosen params (aiming for maximum compression). This is a pre-build/post-build tool for a website building project.
## usage
```yml
- uses: nvfp/ghact_minify_htmls@... # use the latest version is recommended.
with:
folder: ./_site # will minify all HTML files recursively inside this folder (use rel. path, relative to root)
```
Please read the file `action.yml` to learn more.
## notes
- make sure all the html files have `.html` type (lowercase).