developertools.tech icon indicating copy to clipboard operation
developertools.tech copied to clipboard

[Req]: HTML5 Minifier

Open dlford opened this issue 3 years ago • 5 comments

Contact Details

No response

Explain the proposed feature

Add minifier to HTML format tool

Explain the possible use cases for the feature

No response

Any other details you would like to provide?

No response

Notes

  1. HTML Format is completed #18
  2. We'll have to get creative with the minify part, because most of the NPM packages won't run in browser
  3. Suggestions from @ageddesi:
    • https://kangax.github.io/html-minifier/
    • https://www.npmjs.com/package/html-minifier

dlford avatar Sep 14 '22 19:09 dlford

@ageddesi thanks for the suggestions! Did you want to take a crack at this?

dlford avatar Oct 08 '22 19:10 dlford

Could be fun. Will try look over next few days. :)

ageddesi avatar Oct 08 '22 19:10 ageddesi

Could be fun. Will try look over next few days. :)

Awesome! Much appreciated!

dlford avatar Oct 08 '22 19:10 dlford

So far I am hitting 'Module not found: Can't resolve 'fs'' issues with the package I am using https://github.com/terser/html-minifier-terser Will need to have another look tomorrow

ageddesi avatar Oct 08 '22 21:10 ageddesi

So far I am hitting 'Module not found: Can't resolve 'fs'' issues with the package I am using https://github.com/terser/html-minifier-terser Will need to have another look tomorrow

Yeah, that's the issue, most of the minifiers are for node, thanks for looking into it for me though!

dlford avatar Oct 08 '22 21:10 dlford