I just want to use function from html-minifier in the browser.
I have tried using Browserify to make bundle using these commands:
browserify -r html-minifier -o html-minifier.js
browserify -r html-minifier -s htmlMinifier -o html-minifier.js
Also tried importing as module and script but it gives require.resolve is not a function
Even tried CDNs like Skypack
This issue provides a pre-built minified bundle which works but I need to create the bundle myself for latest version after some changes.