kangax / html-minifier

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

Any plans to minify content within script tag of type="application/ld+json"? #1132

Open VincentVToscano opened 2 years ago

VincentVToscano commented 2 years ago

Sending a big thanks to the team and contributors maintaining this project 👍

I wanted to ask if there were any plans to minify content within <script type="application/ld+json">? Below are all the details of my system and how I've implemented your hard work within my projects. Within that script tag, I am using an array. Hoping this helps. Thanks for reviewing and please let me know if I can give any more details that help.

Version "html-minifier": "^4.0.0",

System macOS 12.4

Node v14.16.1

Usage html-minifier --input-dir ../public/ --output-dir ../public/ --case-sensitive --collapse-whitespace --remove-comments --remove-redundant-attributes --remove-script-type-attributes --minify-css true --minify-js true --file-ext html