kangax / kangax/html-minifier

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

Open
#1,132 1 comment 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
577
PR merge metrics
No merged PRs in 30d

Description

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 ``````? 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```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source file, test, or entry point. Start by tracing how html-minifier handles script tags and the --minify-js option, then clarify the expected JSON-LD output and add coverage once the behavior is agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
tooling, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.