reshape / minify

a reshape plugin to minify html output
Other
5 stars 3 forks source link

Unable to parse ld+json #17

Closed alexpate closed 7 years ago

alexpate commented 7 years ago

Attempting to minify the following block of code seems to break down with the following error: ModuleBuildError: Module build failed: SyntaxError: Unexpected end of JSON input

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "name" : "Company Name",
  "url": "https://company.com",
  "logo": "https://company.com/logo.png",
  "sameAs" : [
    "http://www.twitter.com/company",
  ]
}
</script>
alexpate commented 7 years ago

Argh, hidden character issue