hexojs / hexo-html-minifier

Minify HTML files with HTMLMinifier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Proposal] Replace html-minifier with htmlnano

SukkaW opened this issue · comments

commented

html-minifier is not actively maintained anymore. Although there is a forked version html-minifier-terser, it only replaces UglifyJS with terser to support ES6 (inline <script> affected only).

There is another HTML minify tool htmlnano. I have already used it in my project (and my personal blog as well). It doesn't receive active maintenance for a while, but now I am porting html-minifier's features to htmlnano (posthtml/htmlnano#94, posthtml/htmlnano#98, and more to come).

Also, htmlnano's source code is clean and its maintainer @maltsev is currently active, which means it might receive more community contributions in the future.

It seems interesting, do you have an example/branch where you replace html-minifier with htmlnano?

commented

do you have an example/branch where you replace html-minifier with htmlnano?

I can bring up a draft PR as a PoC.

Hey 👋

htmlnano maintainer here. It's true that I rarely contribute code to this project, but on weekends I usually have some time to review/merge PRs, answer questions, and release new versions.

Also, htmlnano is used by Parcel.