kangax / html-minifier

Javascript-based HTML compressor/minifier (with Node.js support)
http://kangax.github.io/html-minifier/
MIT License
4.92k stars 568 forks source link

Feature Request: Support also files with extension .htm #1117

Open panulogic opened 2 years ago

panulogic commented 2 years ago

Currently it seems only '.html' files can be minified

R4356th commented 2 years ago

You can do this with --file-ext htm when using the CLI.

panulogic commented 2 years ago

Thank you for the information. I am using html-minifier directly via its API from Node.js.

I was able to make a few changes to the source-code of html-minifier to make it work with .htm files as well. But it would be nice if that was part of the official distribution.

Thanks

From: R4356th @.> Sent: Saturday, October 30, 2021 10:37 AM To: kangax/html-minifier @.> Cc: Class Cloud LLC @.>; Author @.> Subject: Re: [kangax/html-minifier] Feature Request: Support also files with extension .htm (Issue #1117)

You can do this with --file-ext htm when using the CLI.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kangax/html-minifier/issues/1117#issuecomment-955243630 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6KULVFMNMKEJTEQ2UEZPLUJP7HTANCNFSM5HAKZNRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AF6KULVWYL5YEUCFJPB4L53UJP7HTA5CNFSM5HAKZNR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHDX5Y3Q.gif