Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize Schema structured data (json-ld) #281

Closed
mauriciabad opened this issue Apr 14, 2020 · 3 comments
Closed

Minimize Schema structured data (json-ld) #281

mauriciabad opened this issue Apr 14, 2020 · 3 comments

Comments

@mauriciabad
Copy link

  • Operating System: Windows
  • Node Version: v13.11.0
  • NPM Version: 6.13.7
  • webpack Version: ^4.41.5
  • html-loader Version: ^0.5.5

Feature Proposal

When minimize is enabled minify the content of the script tags with "application/ld+json" type like a js file:

<script type="application/ld+json">
  minify this
</script>

Feature Use Case

Anyone using microdata may benefit of this. Specially developers working on SEO.

This is the code I get now in production, as you can see everything is in the same line except some elements in the header, one being the json-ld script tag.
2020-04-14 19_16_01-package json - hackupc-landing - Visual Studio Code

@alexander-akait
Copy link
Member

I think you need open a new issue here https://github.com/DanielRuf/html-minifier-terser 😄 We use that package for minify html

@alexander-akait
Copy link
Member

Look here - terser/html-minifier-terser#34, you can be champion 👍

@mauriciabad
Copy link
Author

Okay, I'll follow that issue. Thanks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants