Open cemalgnlts opened 11 months ago
It's called html-minifier
for a reason.
Try wrapping it in <script>
like you can see in the screenshot:
To only minimize pure json, there are other tools that you can use. For example jq
. https://remarkablemark.org/blog/2021/09/30/jq-minify-json/
What happened?
I tried to minimize this JSON file:
The error I received: Error: Parse Error: <![$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(catch|finally|throw|try)(?![$[:alnum:]])(?:(?=\.\.\.)|(?!\.))" }
You can go to https://terser.org/html-minifier-terser/ and paste the JSON content and examine it.
Version
latest
What browsers are you seeing the problem on?
Chrome
Link to reproduce
No response
Relevant log output
No response
Willing to submit a PR?
None