What this minifier does
Removes HTML comments (except conditional comments), collapses runs of whitespace to a single space and removes whitespace between tags. Content of <pre>, <textarea>, <script> and <style> is left exactly as written. Removing space between inline elements can join words, so check inline layouts.
Is minification worth it?
Minification typically trims 10–40% of a text file. With gzip or Brotli compression on the server the gain shrinks, because compression already removes repetition, but minified files still compress slightly smaller and parse a little faster.