https://github.com/posthtml/htmlnano
Modular HTML minifier, built on top of the PostHTML
https://github.com/posthtml/htmlnano
Last synced: 9 months ago
JSON representation
Modular HTML minifier, built on top of the PostHTML
- Host: GitHub
- URL: https://github.com/posthtml/htmlnano
- Owner: posthtml
- License: mit
- Created: 2016-01-12T17:31:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-05-08T07:27:48.000Z (9 months ago)
- Last Synced: 2025-05-09T18:29:08.319Z (9 months ago)
- Language: JavaScript
- Homepage: https://htmlnano.netlify.app
- Size: 2.21 MB
- Stars: 268
- Watchers: 3
- Forks: 30
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# htmlnano
[](http://badge.fury.io/js/htmlnano)

Modular HTML minifier, built on top of the [PostHTML](https://github.com/posthtml/posthtml). Inspired by [cssnano](https://github.com/cssnano/cssnano).
## [Benchmark](https://github.com/maltsev/html-minifiers-benchmark/blob/master/README.md)
[html-minifier-terser@6.0.2]: https://www.npmjs.com/package/html-minifier-terser
[htmlnano@2.0.0]: https://www.npmjs.com/package/htmlnano
| Website | Source (KB) | [html-minifier-terser@6.0.2] | [htmlnano@2.0.0] |
|---------|------------:|----------------:|-----------:|
| [stackoverflow.blog](https://stackoverflow.blog/) | 90 | 82 | 76 |
| [github.com](https://github.com/) | 232 | 203 | 173 |
| [en.wikipedia.org](https://en.wikipedia.org/wiki/Main_Page) | 81 | 76 | 75 |
| [npmjs.com](https://www.npmjs.com/features) | 43 | 40 | 38 |
| [tc39.es](https://tc39.es/ecma262/) | 6001 | 5465 | 5459 |
| **Avg. minify rate** | 0% | **9%** | **13%** |
## Documentation
https://htmlnano.netlify.app